+a←5 4 ⍴ ⍳20
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
17 18 19 20
a[2;]
5 6 7 8
a[;3]
3 7 11 15 19
2 ⌷ a
5 6 7 8
but how do you extract the 3rd column using the index function?
+a←5 4 ⍴ ⍳20
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
17 18 19 20
a[2;]
5 6 7 8
a[;3]
3 7 11 15 19
2 ⌷ a
5 6 7 8
3⌷[2]a ⍝ Index fn w/ axis op (special syntax)
3 7 11 15 19
3⌷⍤1⊣a ⍝ Index fn w/ rank op
3 7 11 15 19
a[;3] ⍝ Bracket Indexing
3 7 11 15 19
COL←(⌷⍤1)
3 COL a
3 7 11 15 19
a←?1000 1000⍴0
aT←⍉a
]runtime -c 3⌷[2]a 3⌷⍤1⊢a a[;3] 3⌷aT
3⌷[2]a → 3.1E¯6 | 0% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕
3⌷⍤1⊢a → 2.8E¯6 | -8% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕
a[;3] → 2.6E¯6 | -16% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕
3⌷aT → 2.9E¯7 | -91% ⎕⎕⎕⎕
a←?1000 1000⍴0
]runtime -c 3⌷[2]a 3⌷⍤1⊢a a[;3] 3⌷⍉a
3⌷[2]a → 2.0E¯6 | 0%
3⌷⍤1⊢a → 2.0E¯6 | 0%
a[;3] → 1.5E¯6 | -25%
3⌷⍉a → 2.3E¯3 | +118200%