Matrix.Create<T>(IEnumerable<T[]>, Matrix Element Order, Array Mutability) Method
Constructs a new matrix from a jagged 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>(
IEnumerable<T[]> values,
MatrixElementOrder order = MatrixElementOrder.RowMajor,
ArrayMutability mutability = ArrayMutability.MutableValues
)
Parameters
- values IEnumerable<T[]>
- A jagged array or enumerable list of arrays of values.
- order MatrixElementOrder (Optional)
- Specifies whether values contains the rows or columns of the matrix.
- 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 |