Back to Sparse Direct Solver (SuperLU)
slu.permutation.permuteSparseMatrix
Apply row and column permutations to a sparse matrix.
Syntax
slu.permutation.permuteSparseMatrix(A, rowPerm, colPerm)
Description
Apply row and column permutations to a sparse matrix. Computes P * A * Q where P is the row permutation matrix and Q is the column permutation matrix. The result is a new sparse matrix with reordered rows and columns.
Parameters
| Name | Description |
|---|---|
| A | - Sparse matrix in CSC format |
| rowPerm | - Row permutation (or null for identity) |
| colPerm | - Column permutation (or null for identity) |
Returns
SparseMatrixCSC