Skip to main content

Module functions_2

Module functions_2 

Source
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).