saiunit.sparse module#
Unit-aware sparse matrix types.
Provides CSR, CSC, and COO sparse matrix classes that carry physical units, with conversion utilities between dense and sparse formats.
Sparse Data Structures#
Base class for sparse matrices in |
|
Unit-aware Compressed Sparse Row (CSR) matrix. |
|
Unit-aware Compressed Sparse Column (CSC) matrix. |
|
Unit-aware Coordinate (COO) sparse matrix. |
Sparse Data Operations#
Convert a CSR-format sparse matrix to a dense matrix. |
|
Create a CSR-format sparse matrix from a dense matrix. |
|
Convert a CSC-format sparse matrix to a dense matrix. |
|
Create a CSC-format sparse matrix from a dense matrix. |
|
Convert a COO-format sparse matrix to a dense matrix. |
|
Create a COO-format sparse matrix from a dense matrix. |