Note: This API is now obsolete.
[ILNumerics Computing Engine]
Namespace: ILNumerics
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (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
Parameters
- start
- Type: T
Start value. - step
- Type: T
Step size. - end
- Type: T
End value.
Type Parameters
- T
Return Value
Type: RetArrayT(Column) vector of length N.
Exception | Condition |
---|---|
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]