Reduction and the rank operator
Posted: Wed Sep 16, 2015 1:12 pm
Would anyone be able to clarify the interaction between the rank and reduction operators? For example, given the following session:
it's unclear to me why reduce and reduce first behave differently. Shouldn't the rank operator determine the domain of reduction (analgous to the way in which the axis operator collapses the distinction in the first two expressions)?
+⌿[1]a←2 3 4⍴⍳24
12 15 18 21
48 51 54 57
+/[1]a
12 15 18 21
48 51 54 57
(+⌿⍤2)a
12 15 18 21
48 51 54 57
(+/⍤2)a
6 22 38
54 70 86
it's unclear to me why reduce and reduce first behave differently. Shouldn't the rank operator determine the domain of reduction (analgous to the way in which the axis operator collapses the distinction in the first two expressions)?