﻿ILMath.vec(T) 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.0.0 (5.5.7503.3146)
Syntax

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

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

T

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.

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]