Matrix.CreateConstant<T> Method

Constructs a new constant matrix.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static ConstantMatrix<T> CreateConstant<T>(
	int rowCount,
	int columnCount,
	T value
)

Parameters

rowCount  Int32
The number of rows.
columnCount  Int32
The number of columns.
value  T
The constant value of all the elements.

Type Parameters

T

Return Value

ConstantMatrix<T>
A ConstantVector<T>.

Remarks

The values of the elements cannot be changed.

See Also