rightTranspose

fun DTensor.rightTranspose(a: Shape, b: Shape): DTensor

Given the shape A,B,D (where A, B and D are lists of Ints, and D is possibly empty), this function converts a tensor of shape D,A,B to a tensor of shape D,B,A, shuffling the data so that the element at position i,j,k is at position i,k,j (where i, j and k are lists of integers corresponding to the shape D, B, and A).