Function extendr_api::prelude::sparse::utils::transpose

pub fn transpose<'a, I, E>(
    new_col_ptrs: &'a mut [I],
    new_row_indices: &'a mut [I],
    new_values: <<E as Entity>::Group as ForType>::FaerOf<&'a mut [<E as Entity>::Unit]>,
    A: SparseColMatRef<'_, I, E>,
    stack: PodStack<'_>,
) -> SparseColMatMut<'a, I, E>
where I: Index, E: Entity,
Expand description

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

The result is stored in new_col_ptrs, new_row_indices and new_values.

ยงNote

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