Matrix.Create<T>(T[2], Array Mutability) 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#
A DenseMatrix<T>.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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
Argument | values is null |