pub trait Transpose: Matrixwhere
    Self::Output: Matrix,
{ type Output; fn transpose(&self) -> Self::Output; }

Required Associated Types§

Required Methods§

Returns the transposed version of the given matrix

Aᵀ

Examples
let a = [
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0]
];
let at = [
    [1.0, 4.0],
    [2.0, 5.0],
    [3.0, 6.0]
];
assert_eq!(a.transpose(), at);

Implementations on Foreign Types§

Implementors§