extendr_api::prelude::sparse::utils

Function adjoint_symbolic

pub fn adjoint_symbolic<'a, I>(
    new_col_ptrs: &'a mut [I],
    new_row_indices: &'a mut [I],
    A: SymbolicSparseColMatRef<'_, I>,
    stack: PodStack<'_>,
) -> SymbolicSparseColMatRef<'a, I>
where I: Index,
Expand description

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

The result is stored in new_col_ptrs, new_row_indices.

ยงNote

Allows unsorted matrices, producing a sorted output. Duplicate entries are kept, however.