Back to Sparse Direct Solver (SuperLU)
slu.matrix.createDenseMatrix
Create a dense matrix.
Syntax
slu.matrix.createDenseMatrix(data, m, n, rowMajor?)
Description
Create a dense matrix. Dense matrices store all elements, including zeros. The data is stored in column-major order by default (Fortran-style), which is efficient for most linear algebra operations.
Parameters
| Name | Description |
|---|---|
| data | - Matrix data |
| m | - Number of rows |
| n | - Number of columns |
| rowMajor(optional) | - If true, data is in row-major order (default: false) |
Returns
DenseMatrix