pub trait PermuteTo<T, Axes> {
    fn permute(self) -> T;
}
Expand description

Permutes self into T with the new order of axes specified via Axes.

Required Methods

Permutes the tensor

Examples

let _: Tensor2D<3, 2> = Tensor2D::<2, 3>::zeros().permute();
let _: Tensor3D<3, 4, 2> = Tensor3D::<2, 3, 4>::zeros().permute();
let _: Tensor4D<3, 4, 5, 2> = Tensor4D::<2, 3, 4, 5>::zeros().permute();

Implementors