Constructs a new matrix of the specified
dimensions using the specified values array.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static DenseMatrix<T> Create<T>(
int rowCount,
int columnCount,
T[] values,
MatrixElementOrder elementOrder,
bool reuseComponentArray = false,
ArrayMutability mutability = ArrayMutability.MutableValues
)
Public Shared Function Create(Of T) (
rowCount As Integer,
columnCount As Integer,
values As T(),
elementOrder As MatrixElementOrder,
Optional reuseComponentArray As Boolean = false,
Optional mutability As ArrayMutability = ArrayMutability.MutableValues
) As DenseMatrix(Of T)
public:
generic<typename T>
static DenseMatrix<T>^ Create(
int rowCount,
int columnCount,
array<T>^ values,
MatrixElementOrder elementOrder,
bool reuseComponentArray = false,
ArrayMutability mutability = ArrayMutability::MutableValues
)
static member Create :
rowCount : int *
columnCount : int *
values : 'T[] *
elementOrder : MatrixElementOrder *
?reuseComponentArray : bool *
?mutability : ArrayMutability
(* Defaults:
let _reuseComponentArray = defaultArg reuseComponentArray false
let _mutability = defaultArg mutability ArrayMutability.MutableValues
*)
-> DenseMatrix<'T>
Parameters
- rowCount
- Type: SystemInt32
The number of rows. - columnCount
- Type: SystemInt32
The number of columns. - values
- Type: T
An array of values
that contain the elements of the matrix in
column-major order. - elementOrder
- Type: Extreme.MathematicsMatrixElementOrder
A MatrixElementOrder
value that specifies the order in which the matrix elements are stored in
the storage array values. - reuseComponentArray (Optional)
- Type: SystemBoolean
If , the array referenced by
Specifies how the matrix's values may be changed.
The default is mutable values.values is used directly for element storage without being copied.
Any changes to the elements of this matrix will also affect the original array,
and vice versa. If , the elements are copied from
values to a new array. - mutability (Optional)
- Type: Extreme.MathematicsArrayMutability
Type Parameters
- T
Return Value
Type:
DenseMatrixTA
DenseMatrixT.
Reference