pub trait SwapsDimensions: MatrixMutExt {
    // Required method
    fn swap_dimensions(&mut self);
}
Expand description

Provides a method for exchanging the dimensions of a matrix.

This trait is intended for some matrix transformations.

Required Methods§

source

fn swap_dimensions(&mut self)

After calling this function, .num_rows() must return value of .num_cols() and vice-versa.

Implementors§