Module permutation

Source
Expand description

Permutation matrices.

Traits§

Index
Trait for unsigned integers that can be indexed with.
SignedIndex
Trait for signed integers corresponding to the ones satisfying Index.

Functions§

permute_cols
Computes a permutation of the columns of the source matrix using the given permutation, and stores the result in the destination matrix.
permute_cols_in_place
Computes a permutation of the columns of the matrix using the given permutation, and stores the result in the same matrix.
permute_cols_in_place_req
Computes the size and alignment of required workspace for applying a column permutation to a matrix in place.
permute_rows
Computes a permutation of the rows of the source matrix using the given permutation, and stores the result in the destination matrix.
permute_rows_in_place
Computes a permutation of the rows of the matrix using the given permutation, and stores the result in the same matrix.
permute_rows_in_place_req
Computes the size and alignment of required workspace for applying a row permutation to a matrix in place.
swap_cols
Swaps the two columns at indices a and b in the given matrix.
swap_rows
Swaps the two rows at indices a and b in the given matrix.

Type Aliases§

Permutation
Owned permutation.
PermutationMut
Mutable permutation view.
PermutationRef
Immutable permutation view.