On Wednesday, September 17, 2014 1:36:16 PM UTC-5, Douglas Bates wrote:
>
>
> 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".
>

Before anyone else notices it, the quote was "I was misinformed". 

>
>
> permute! is the in-place version of permute, not permutedims. 
>

Reply via email to