I’m trying to understand exactly what perm
is in the permutedims
function. The docs say: “perm
is a vector specifying a permutation of length ndims(A)
”, but I don’t understand what this means.
To transpose a 2D array, you do permutedims(A, [2,1])
, but why is perm
equal to [2, 1]
in this case? If ndims(A)
is equal to 2, what’s the 1 (assuming that the 2 in permutedims(A, [2,1])
is indeed ndims(A)
)?
I might just be more in need of a Math lesson than a Julia lesson, but I’m really hoping to understand this…
Thanks!!!