Expand description
Sparse matrix utility operations
This module provides fundamental sparse matrix operations including:
- Norms: 1-norm, infinity-norm, Frobenius norm
- SpGEMM: Sparse matrix-matrix multiplication
- Arithmetic: Sparse addition, subtraction, scaling
- Kronecker product: Sparse Kronecker (tensor) product
- Reordering: Reverse Cuthill-McKee bandwidth reduction
- Condition number estimate: Cheap 1-norm-based condition estimate
Structs§
- RcmResult
- Result of the Reverse Cuthill-McKee algorithm.
Enums§
- Sparse
Norm - Type of matrix norm to compute.
Functions§
- condest_
1norm - Estimate the 1-norm condition number of a sparse matrix.
- permute_
matrix - Apply a permutation to a sparse matrix: P * A * P^T.
- reverse_
cuthill_ mckee - Compute the Reverse Cuthill-McKee permutation of a sparse matrix.
- sparse_
add - Sparse matrix addition: C = alpha * A + beta * B.
- sparse_
extract_ diagonal - Extract the diagonal of a sparse CSR matrix as a dense vector.
- sparse_
identity - Create an n x n sparse identity matrix in CSR format.
- sparse_
kronecker - Compute the Kronecker product C = A kron B.
- sparse_
matrix_ norm - Compute a matrix norm of a sparse CSR matrix.
- sparse_
matrix_ trace - Compute the trace of a sparse matrix (sum of diagonal elements).
- sparse_
scale - Scale a sparse matrix: C = alpha * A.
- sparse_
sub - Sparse matrix subtraction: C = A - B.
- sparse_
transpose - Compute the transpose of a sparse CSR matrix (returns a new CSR matrix).
- spgemm
- Sparse matrix-matrix multiplication: C = A * B.