Deinterleave data

permutedims makes a copy of the data, whereas transpose just makes a kind of “view” object.