Transpose: Difference between revisions

Jump to navigation Jump to search
840 bytes added ,  23:37, 21 December 2021
Line 54: Line 54:
1
1
</source>{{Works in|[[Dyalog APL]]}}
</source>{{Works in|[[Dyalog APL]]}}
==== A common mistake ====
A common mistake in employing dyadic transpose is the "intuitive" interpretation of the left argument as if gives the order in which you want to select dimensions of the right argument for the result. In fact, it gives the new position of each of the dimensions. It is possible to convert between these two representations by "inverting" the permutation with monadic [[Grade|Grade Up]] (<source lang=apl inline>⍋</source>).
The reason for the design of <source lang=apl inline>⍉</source> being as it is, is that it allows you to select diagonals by giving one or more dimensions equal mapping, whereas simply selecting dimensions from the right would not allow that. It is therefore the more complete of the two options.<ref>[[Morten Kromberg]]. Message {{M|57439754}}ff. [[APL Orchard]]. 25 Mar 2021.</ref>


== External links ==
== External links ==

Navigation menu