Vector.CreateConstant<T> Method

Constructs a new constant vector.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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