Constructs a new constant vector.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static ConstantVector<T> CreateConstant<T>(
int length,
T value
)
Public Shared Function CreateConstant(Of T) (
length As Integer,
value As T
) As ConstantVector(Of T)
public:
generic<typename T>
static ConstantVector<T>^ CreateConstant(
int length,
T value
)
static member CreateConstant :
length : int *
value : 'T -> ConstantVector<'T>
Parameters
- length
- Type: SystemInt32
The length of the vector. - value
- Type: T
The constant value of all
the elements.
Type Parameters
- T
Return Value
Type:
ConstantVectorTA
ConstantVectorT.
The values of the elements cannot be changed.
Reference