News for hackers. Stuff that matters.
Re:Mastering Dyalog APL (2009) [pdf] by moonchild on Friday February 25, 2022 @12:15AM (#30463940)
The line is an axis of vertical symmetry in a 2-d context (circle); compare with ⊖, which shows an axis of horizontal symmetry. When applied to a matrix, ⌽ reverses rows and ⊖ reverses columns; the elements are mirrored around the pictured axis of symmetry. (In general, when applied to a high-rank array, ⊖ reverses the first axis of its argument, and ⌽ reverses the last.)
Re:Mastering Dyalog APL (2009) [pdf] by beagle3 on Friday February 25, 2022 @03:05AM (#30464771)
There’s also a circle with a diagonal line through it (on phone, no Unicode keyboard) which consistently with the above axes of symmetry transposes a matrix; don’t remember if it transposes first two or last two axes on higher rank arrays.
Re:Mastering Dyalog APL (2009) [pdf] by moonchild on Friday February 25, 2022 @03:07AM (#30464784)
It reverses the order of the axes. There is also a dyadic variant, which provides a new order for the axes. Duplicating an axis is no problem; but there is a danger of leaving out an axis. So in j, instead, the specified axes are moved to the rear.
Re:Mastering Dyalog APL (2009) [pdf] by moonchild on Friday February 25, 2022 @06:28PM (#30473645)
(Axes of horizontal and vertical symmetry, respectively, of course; I don't know why I wrote that.)
Re:Mastering Dyalog APL (2009) [pdf] by jazzyjackson on Friday February 25, 2022 @12:43AM (#30464056)
o that's much less esoteric, thanks for the explanation