Function faer_core::permutation::permute_rows
source · pub fn permute_rows<I: Index, E: ComplexField>(
dst: MatMut<'_, E>,
src: MatRef<'_, E>,
perm_indices: PermutationRef<'_, I, E>
)Expand description
Computes a permutation of the rows of the source matrix using the given permutation, and stores the result in the destination matrix.
Panics
- Panics if the matrices do not have the same shape.
- Panics if the size of the permutation doesn’t match the number of rows of the matrices.