Constructs a new matrix from a jagged array.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static DenseMatrix<T> Create<T>(
IEnumerable<T[]> values,
MatrixElementOrder order = MatrixElementOrder.RowMajor,
ArrayMutability mutability = ArrayMutability.MutableValues
)
Public Shared Function Create(Of T) (
values As IEnumerable(Of T()),
Optional order As MatrixElementOrder = MatrixElementOrder.RowMajor,
Optional mutability As ArrayMutability = ArrayMutability.MutableValues
) As DenseMatrix(Of T)
public:
generic<typename T>
static DenseMatrix<T>^ Create(
IEnumerable<array<T>^>^ values,
MatrixElementOrder order = MatrixElementOrder::RowMajor,
ArrayMutability mutability = ArrayMutability::MutableValues
)
static member Create :
values : IEnumerable<'T[]> *
?order : MatrixElementOrder *
?mutability : ArrayMutability
(* Defaults:
let _order = defaultArg order MatrixElementOrder.RowMajor
let _mutability = defaultArg mutability ArrayMutability.MutableValues
*)
-> DenseMatrix<'T>
Parameters
- values
- Type: System.Collections.GenericIEnumerableT
A jagged array or enumerable list of arrays of values. - order (Optional)
- Type: Extreme.MathematicsMatrixElementOrder
Specifies whether values
contains the rows or columns of the matrix. - mutability (Optional)
- Type: Extreme.MathematicsArrayMutability
Specifies how the matrix's values may be changed.
The default is mutable values.
Type Parameters
- T
Return Value
Type:
DenseMatrixTA
DenseMatrixT.
The values of the matrix are stored in
row-major order.
Reference