Vector.Create Range Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Create | Constructs a new vector with elements from 0 up to the specified value. |
Create | Constructs a new vector with elements from the specified range.. |
Create | Constructs a new vector with elements from the specified range.. |
Create | Constructs a new vector with elements from the specified range.. |
CreateRange<T>(T, ArrayMutability)
Constructs a new vector with elements from 0 up to the specified value.
public static DenseVector<T> CreateRange<T>(
T stop,
ArrayMutability mutability = ArrayMutability.Immutable
)
Parameters
- stop T
- The upper bound for the range.
- mutability ArrayMutability (Optional)
- Specifies how the vector's values may be changed. The default is mutable values.
Type Parameters
- T
Return Value
DenseVector<T>A DenseVector<T>.
CreateRange<T>(T, T, ArrayMutability)
Constructs a new vector with elements from the specified range..
public static DenseVector<T> CreateRange<T>(
T start,
T stop,
ArrayMutability mutability = ArrayMutability.Immutable
)
Parameters
- start T
- The first value in the range.
- stop T
- The (inclusive) upper bound for the range.
- mutability ArrayMutability (Optional)
- Specifies how the vector's values may be changed. The default is mutable values.
Type Parameters
- T
Return Value
DenseVector<T>A DenseVector<T>.
CreateRange<T>(T, T, Int32, ArrayMutability)
Constructs a new vector with elements from the specified range..
public static DenseVector<T> CreateRange<T>(
T start,
T stop,
int steps,
ArrayMutability mutability = ArrayMutability.Immutable
)
Parameters
- start T
- The first value in the range.
- stop T
- The (inclusive) upper bound for the range.
- steps Int32
- The number of values.
- mutability ArrayMutability (Optional)
- Specifies how the vector's values may be changed. The default is mutable values.
Type Parameters
- T
Return Value
DenseVector<T>A DenseVector<T>.
Exceptions
Argument | steps is less than zero. |
CreateRange<T>(T, T, Int32, Boolean, ArrayMutability)
Constructs a new vector with elements from the specified range..
public static DenseVector<T> CreateRange<T>(
T start,
T stop,
int steps,
bool endPoint,
ArrayMutability mutability = ArrayMutability.Immutable
)
Parameters
- start T
- The first value in the range.
- stop T
- The upper bound for the range.
- steps Int32
- The number of values.
- endPoint Boolean
- Indicates whether stop is included in the range.
- mutability ArrayMutability (Optional)
- Specifies how the vector's values may be changed. The default is mutable values.
Type Parameters
- T
Return Value
DenseVector<T>A DenseVector<T>.
Exceptions
Argument | steps is less than zero. |