Back to Sparse Direct Solver (SuperLU)
slu.matrix.convertCSRtoCSC
Convert a CSR matrix to CSC format.
Syntax
slu.matrix.convertCSRtoCSC(A)
Description
Convert a CSR matrix to CSC format. CSR (Compressed Sparse Row) stores the matrix row by row, while CSC (Compressed Sparse Column) stores it column by column. CSC is SuperLU's native format, so this conversion is useful for preparing matrices for solving.
Parameters
| Name | Description |
|---|---|
| A | - Sparse matrix in CSR format |
Returns
SparseMatrixCSC