Module perm

Source
Expand description

Permutation matrices.

Structs§

Perm
Permutation matrix.
PermRef
Immutable permutation matrix view.

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 values in the columns a and b.
swap_cols_idx
Swaps the two columns at indices a and b in the given matrix.
swap_rows
Swaps the values in the rows a and b.
swap_rows_idx
Swaps the two rows at indices a and b in the given matrix.