MatrixMathToMatrixFromColumnMajorLinearArrayT Method |
Wraps a linear array into a read-write matrix. The array is packed column-wise, i.e. the first elements belong to the first column of the matrix.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static IMatrix<T> ToMatrixFromColumnMajorLinearArray<T>(
T[] x,
int nRows
)
where T : struct, new()
Parameters
- x T
- Linear array. The length has to be a multiple of nRows.
- nRows Int32
- Number of rows of the resulting matrix.
Type Parameters
- T
- The element type of the matrix.
Return Value
IMatrixTThe read-only matrix wrappage of the linear array.
See Also