How to apply a function to each matrix in a 3D array¶
Use rank 2 to treat each matrix (2-cell) of a rank-3 array as an independent operand:
This reverses the rows within each of the two matrices.
This sums each row of each matrix, reducing the last axis.
This transposes each matrix independently.
The frame shape is 2 (the leading axis) and the cell shape is 3 4 (each matrix).
See also: Apply to rows, Leading-axis theory