extendr_api::prelude::perm

Function permute_cols_in_place

pub fn permute_cols_in_place<I, E>(
    matrix: MatMut<'_, E>,
    perm_indices: PermRef<'_, I>,
    stack: PodStack<'_>,
)
where I: Index, E: ComplexField,
Expand description

Computes a permutation of the columns of the matrix using the given permutation, and stores the result in the same matrix.

§Panics

  • Panics if the size of the permutation doesn’t match the number of columns of the matrix.