transpose

Function transpose 

Source
pub fn transpose<I, R, T, B, D>(
    tensor: &TensorBase<Storage<R, T, B>, D>,
    axes: I,
) -> TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<T>>::Raw>, T, B>, D>
where D: DimAPI, I: TryInto<AxesIndex<isize>, Error = Error>, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T>,
Expand description

Permutes the axes (dimensions) of an array x.

ยงSee also