Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- add_
identity_ scaled - Add a scalar multiple of the identity to a CSR matrix: A + alpha * I. Requires the diagonal entries to already exist in the sparsity pattern.
- set_
diagonal - Set the diagonal of a CSR matrix (in-place). Only existing diagonal entries are modified.
- sparse_
frobenius_ norm - Compute the Frobenius norm of a sparse matrix.
- sparse_
inf_ norm - Compute the infinity-norm (max row sum of absolute values) of a sparse matrix.
- sparse_
one_ norm - Compute the 1-norm (max column sum of absolute values) of a sparse matrix.
- symmetrise_
sparse - Symmetrise a sparse matrix: A_sym = (A + A^T) / 2.
- upper_
triangular - Extract the upper triangular part of a sparse matrix (including diagonal).