Re: Five-dimensional transpose results in incorrect shape

2020-03-11 Thread Jay Foad
On Tue, 10 Mar 2020 at 18:37, Kacper Gutowski wrote: > > On Wed, Mar 11, 2020 at 12:57:09AM +0800, Elias Mårtenson wrote: > >Now, for the problematic version: > > > >* ⍴ 2 4 1 0 3 ⍉ 3 4 5 6 7 ⍴ ⍳100* > >┏→┓ > >┃6 5 3 7 4┃ > >┗━┛ > > > >As you can see, the numbers are all over

Re: Five-dimensional transpose results in incorrect shape

2020-03-10 Thread Dr . Jürgen Sauermann
Hi, the IBM APL2 language reference says (page 251): if Z←L⍉R then: (⍴Z) ←→ (⍴R)[⍋L] In our case we have (GNU APL):   ⎕IO←0   R←3 4 5 6 7 ⍴ ⍳100   L←2 4 1 0 3   Z←L⍉R   ⍴Z 6 5 3 7 4   (⍴R)[⍋

Re: Five-dimensional transpose results in incorrect shape

2020-03-10 Thread Kacper Gutowski
On Wed, Mar 11, 2020 at 12:57:09AM +0800, Elias Mårtenson wrote: Now, for the problematic version: * ⍴ 2 4 1 0 3 ⍉ 3 4 5 6 7 ⍴ ⍳100* ┏→┓ ┃6 5 3 7 4┃ ┗━┛ As you can see, the numbers are all over the place. For some reason, it seems to have interpreted the left arguments to