Vector.Create Constant<T> Method
Constructs a new constant vector.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
A ConstantVector<T>.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public static ConstantVector<T> CreateConstant<T>(
int length,
T value
)
Parameters
- length Int32
- The length of the vector.
- value T
- The constant value of all the elements.
Type Parameters
- T
Return Value
ConstantVector<T>A ConstantVector<T>.
Remarks
The values of the elements cannot be changed.