ILNumerics Ultimate VS

ILMatharangeT, Ts Method (T, Ts, T)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Creates vector of N evenly spaced values of given step size over a closed interval, numeric, real elements of type T.

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static RetArray<T> arange<T, Ts>(
	T start,
	Ts step,
	T end
)
where T : IConvertible
where Ts : IConvertible

Parameters

start
Type: T
Start value.
step
Type: Ts
Step size.
end
Type: T
End value.

Type Parameters

T
Ts

Return Value

Type: RetArrayT
(Column) vector of length N.
Exceptions

ExceptionCondition
ArgumentException if either of start, end, or step is null, non-numeric, or non-scalar, if step is 0 or the sign of step does not match the sign of 'end - start'.
Remarks

The function creates N values from start to end, all equally spaced with stepsize step.step.

The last element of the returned vector will be less than or equal to end, if start<end.

If start>end elements in the vector will linearly decrease from start to end. In this case, step must be negative.

Values are computed in the precision of the datatype T. For integer T this may imply rounding issues.

arange``2(UMP, UMP, UMP) can not create empty vectors! Use empty``1(Int64, Int64, StorageOrders), zeros``1(Int64, Int64, StorageOrders), array``1(UMP, Int64, StorageOrders) or the like to create empty arrays.

[ILNumerics Computing Engine]

See Also

Reference

MathInternal.counter``1(UMP, UMP, Int64, Int64, StorageOrders)
MathInternal.arange``2(UMP, UMP, UMP)
MathInternal.vector``1(UMP, UMP, UMP, UMP, UMP, UMP, UMP, UMP, UMP)
MathInternal.linspace``1(InArrayUMP, InArrayUMP, InArrayUMP)