Matrix.Create<T>(Int32, Int32, T[], Int32, Int32, 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,
	T[] values,
	int offset,
	int leadingDimension,
	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  T[]
An array that contains the values of the matrix.
offset  Int32
Offset of the first element of the matrix in values.
leadingDimension  Int32
Distance between the first element of each row or column.
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