extendr_api::prelude::sparse::utils

Function sort_indices

pub fn sort_indices<I, E>(
    col_ptrs: &[I],
    nnz_per_col: Option<&[I]>,
    row_indices: &mut [I],
    values: <<E as Entity>::Group as ForType>::FaerOf<&mut [<E as Entity>::Unit]>,
)
where I: Index, E: Entity,
Expand description

Sorts row_indices and values simultaneously so that row_indices is nonincreasing.