ILNumerics Ultimate VS

ILMathvecT Method (T, T, T)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development

Note: This API is now obsolete.

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.7503.3146)

[ObsoleteAttribute("Use arange<T,TS>(T,TS,T) instead!")]
public static RetArray<T> vec<T>(
	T start,
	T step,
	T end
where T : IConvertible


Type: T
Start value.
Type: T
Step size.
Type: T
End value.

Type Parameters


Return Value

Type: RetArrayT
(Column) vector of length N.

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'.

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.

vec``1(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.

This function is provided for compatibility with older versions only. Use arange``2(UMP, UMP, UMP) instead!

[ILNumerics Computing Engine]

See Also


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)