Skip to main content

transposed

Function transposed 

Source
pub fn transposed(shape: &[usize], axes: &[usize]) -> Result<Vec<usize>, Error>
Expand description

The lengths of shape transposed by axes, which sends axis i to result axis axes[i]. Axes sent to the same result axis select their diagonal, at the shortest of their lengths. Every result axis from 0 to the largest destination needs a source.