Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 591 Bytes

transpose_reorderaxes.md

File metadata and controls

27 lines (14 loc) · 591 Bytes

View this file with results and syntax highlighting here.

Circle Backslash ()

⍉ 𝕩: Transpose

→full documentation

Move the first axis of 𝕩 to the end.

    a ← 3‿3 ⥊ ↕9

    ⍉ a

    b ← 1‿2‿3 ⥊ ↕6

    ≢⍉ b

𝕨 ⍉ 𝕩: Reorder Axes

→full documentation

Rearrange the axes of 𝕩 as per the axis indices in 𝕨.

    ≢ c ← 2‿3‿4‿5‿6 ⥊1

    ≢ 1‿3‿2‿0‿4 ⍉ c