Module util

Source
Expand description

Useful sparse matrix primitives.

Functionsยง

adjoint
Computes the adjoint of the matrix A and returns a view over it.
adjoint_symbolic
Computes the adjoint of the symbolic matrix A and returns a view over it.
permute_hermitian
Computes the self-adjoint permutation $P A P^\top$ of the matrix A and returns a view over it.
sort_indices
Sorts row_indices and values simultaneously so that row_indices is nonincreasing.
transpose
Computes the transpose of the matrix A and returns a view over it.