# Module extendr_api::prelude::sparse::utils

## Expand description

Useful sparse matrix primitives.

## Functionsยง

- Computes the adjoint of the matrix
`A`

and returns a view over it. - Computes the adjoint of the symbolic matrix
`A`

and returns a view over it. - Computes the self-adjoint permutation $P A P^\top$ of the matrix
`A`

and returns a view over it. - Computes the size and alignment of the workspace required to compute a two-sided permutation of a self-adjoint matrix.
- Sorts and deduplicates
`row_indices`

and`values`

simultaneously so that`row_indices`

is nonincreasing and contains no duplicate indices. - Sorts
`row_indices`

and`values`

simultaneously so that`row_indices`

is nonincreasing. - Computes the transpose of the matrix
`A`

and returns a view over it.