pub trait ApplyPermutationToMatrix {
type A;
// Required method
fn apply_permutation(
&self,
index_array: ArrayView1<'_, usize>,
mode: MatrixPermutationMode,
) -> Array2<Self::A>;
}Required Associated Types§
Required Methods§
Sourcefn apply_permutation(
&self,
index_array: ArrayView1<'_, usize>,
mode: MatrixPermutationMode,
) -> Array2<Self::A>
fn apply_permutation( &self, index_array: ArrayView1<'_, usize>, mode: MatrixPermutationMode, ) -> Array2<Self::A>
Apply a permutation to rows or columns of a matrix
§Arguments
index_array: A permutation array. If index_array[i] = j then after permutation the ith row/column of the permuted matrix will contain the jth row/column of the original matrix.mode: The permutation mode. If the permutation mode isROWorCOLthen permute the rows/columns of the matrix. If the permutation mode isROWINVorCOLINVthen apply the inverse permutation to the rows/columns.