Matrix.Create<T>(T[2], ArrayMutability) Method

Constructs a new matrix from a two-dimensional array.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static DenseMatrix<T> Create<T>(
	T[,] values,
	ArrayMutability mutability = ArrayMutability.MutableValues
)

Parameters

values  T[2]
A two-dimensional array of values. The first dimension enumerates the rows. The second dimension enumerates the columns.
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>.

Remarks

The values of the matrix are stored in row-major order.

Exceptions

ArgumentNullExceptionvalues is null

See Also