On Wednesday, September 17, 2014 1:03:25 PM UTC-5, DumpsterDoofus wrote: > > I am having trouble with `permute!`, the in-place version of > `permutedims`. I tried the following: > > A = rand(Float32, 20, 30, 40, 2); > > permute!(A, [1;2;3;4]) > > which produced the following: > > ERROR: BoundsError() > in permute!! at combinatorics.jl:196 > in permute! at combinatorics.jl:212 > > Strangely, executing the the in-place version, > > permutedims(A, [1;2;3;4]) > > works fine, giving the correct result. > > What is going on here? >
As Humphrey Bogart said to Claude Rains in "Casablanca", "I misunderstood". permute! is the in-place version of permute, not permutedims.
