aboutsummaryrefslogtreecommitdiff
path: root/doc/transpose.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-03 15:51:15 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-03 15:55:14 -0400
commit29509cedb9af2715328e44c481738a9ba05cff73 (patch)
tree734a0251dbb20bc7e29b4b0e3bac3b48e0cdaff0 /doc/transpose.md
parent30b5188c23576d5e119bbc8d27cd08a3015a75c9 (diff)
Use ⋈ rather than ≍○< in documentation examples
Diffstat (limited to 'doc/transpose.md')
-rw-r--r--doc/transpose.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/transpose.md b/doc/transpose.md
index 7f91ad2d..d7718b5e 100644
--- a/doc/transpose.md
+++ b/doc/transpose.md
@@ -31,11 +31,11 @@ BQN's transpose takes the first axis of `𝕩` and moves it to the end.
In terms of the argument data as given by [Deshape](reshape.md#deshape) (`⥊`), this looks like a simple 2-dimensional transpose: one axis is exchanged with a compound axis made up of the other axes. Here we transpose a rank 3 matrix:
a322 ← 3‿2‿2⥊↕12
- ≍○<⟜⍉ a322
+ ⋈⟜⍉ a322
But, ignoring the whitespace and going in reading order, the argument and result have exactly the same element ordering as for the rank 2 matrix `⥊˘ a322`:
- ≍○<⟜⍉ ⥊˘ a322
+ ⋈⟜⍉ ⥊˘ a322
To exchange multiple axes, use the [Repeat](repeat.md) modifier. A negative power moves axes in the other direction, just like how [Rotate](reverse.md#rotate) handles negative left arguments. In particular, to move the last axis to the front, use [Undo](undo.md) (as you might expect, this exactly inverts `⍉`).