Matrix.Create<T>(Int32, Int32, Array2D<T>, MatrixElementOrder, ArrayMutability) Method

Constructs a new matrix.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static DenseMatrix<T> Create<T>(
	int rowCount,
	int columnCount,
	Array2D<T> values,
	MatrixElementOrder elementOrder,
	ArrayMutability mutability = ArrayMutability.MutableValues
)

Parameters

rowCount  Int32
The number of rows in the matrix.
columnCount  Int32
The number of columns in the matrix.
values  Array2D<T>
A strided array that contains the values of the matrix.
elementOrder  MatrixElementOrder
A MatrixElementOrder value that indicates whether rows or columns are stored contiguously.
mutability  ArrayMutability  (Optional)
Specifies how the matrix's values may be changed. The default is mutable values.

Type Parameters

T

Return Value

DenseMatrix<T>
A DenseMatrix<T>.

See Also