Transpose: Difference between revisions

Jump to navigation Jump to search
9 bytes added ,  23:21, 21 December 2021
m
Line 23: Line 23:


=== Dyadic usage ===
=== Dyadic usage ===
{| class=wikitable style="float:right"
{| class=wikitable style="width:50%;float:right"
|{{quote | "Dyadic transpose, <source lang=apl inline>x⍉y</source>, is probably one of the last primitives to be mastered for an APLer, but is actually straightforward to describe."|[[Roger Hui]]. <ref>[https://forums.dyalog.com/viewtopic.php?f=30&t=1648 ''dyadic transpose, a personal history'']. Dyalog Forums. 22 May 2020.</ref>}}
|{{quote | "Dyadic transpose, <source lang=apl inline>x⍉y</source>, is probably one of the last primitives to be mastered for an APLer, but is actually straightforward to describe."<ref>[[Roger Hui]]. [https://forums.dyalog.com/viewtopic.php?f=30&t=1648 ''dyadic transpose, a personal history'']. Dyalog Forums. 22 May 2020.</ref>}}
|}
|}
For [[dyadic]] usage, the left argument X must be a [[vector]] whose length equals the [[rank]] of the right argument Y, and the elements must form a range so that <source lang=apl inline>∧/X∊⍳(1-⎕IO)+⌈/X</source> is satisfied.
For [[dyadic]] usage, the left argument X must be a [[vector]] whose length equals the [[rank]] of the right argument Y, and the elements must form a range so that <source lang=apl inline>∧/X∊⍳(1-⎕IO)+⌈/X</source> is satisfied.

Navigation menu