Back to Sparse Direct Solver (SuperLU)
slu.matrix.createSparseCSC
Create a sparse matrix in Compressed Sparse Column (CSC) format.
Syntax
slu.matrix.createSparseCSC(m, n, rowIndices, colPointers, values, dtype?)
Description
Create a sparse matrix in Compressed Sparse Column (CSC) format. CSC format stores the matrix column by column: - `colPointers[j]` to `colPointers[j+1]-1` are indices into values/rowIndices for column j - `rowIndices[k]` is the row of the k-th nonzero - `values[k]` is the value of the k-th nonzero
Parameters
| Name | Description |
|---|---|
| m | - Number of rows |
| n | - Number of columns |
| rowIndices | - Row index for each nonzero |
| colPointers | - Column pointers (length n+1) |
| values | - Nonzero values |
| dtype(optional) | - Data type (default: 'float64') |
Returns
SparseMatrixCSC