Vector.CreateConstant<T> Method

Constructs a new constant vector.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
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.

See Also