Constructs a new matrix.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static DenseMatrix<T> Create<T>(
int rowCount,
int columnCount,
Array2D<T> values,
MatrixElementOrder elementOrder,
ArrayMutability mutability = ArrayMutability.MutableValues
)
Public Shared Function Create(Of T) (
rowCount As Integer,
columnCount As Integer,
values As Array2D(Of T),
elementOrder As MatrixElementOrder,
Optional mutability As ArrayMutability = ArrayMutability.MutableValues
) As DenseMatrix(Of T)
public:
generic<typename T>
static DenseMatrix<T>^ Create(
int rowCount,
int columnCount,
Array2D<T> values,
MatrixElementOrder elementOrder,
ArrayMutability mutability = ArrayMutability::MutableValues
)
static member Create :
rowCount : int *
columnCount : int *
values : Array2D<'T> *
elementOrder : MatrixElementOrder *
?mutability : ArrayMutability
(* Defaults:
let _mutability = defaultArg mutability ArrayMutability.MutableValues
*)
-> DenseMatrix<'T>
Parameters
- rowCount
- Type: SystemInt32
The number of rows in the matrix. - columnCount
- Type: SystemInt32
The number of columns in the matrix. - values
- Type: Extreme.CollectionsArray2DT
A strided array that contains the values of the matrix. - elementOrder
- Type: Extreme.MathematicsMatrixElementOrder
A MatrixElementOrder value that indicates
whether rows or columns are stored contiguously. - 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.
Reference