Skip to main content

transpose

Function transpose 

Source
pub fn transpose<T: Copy>(x: &[T], shape: &[usize], perm: &[usize]) -> Vec<T>
Expand description

transpose: dimension i of the result is dimension perm[i] of x.