Take: Difference between revisions

Jump to navigation Jump to search
239 bytes added ,  22:07, 5 December 2019
m (→‎History: LaTeX symbols to commands)
Line 72: Line 72:


When Take is called with [[Function axis|axis]], the axis determines how elements of the left argument correspond to axes of the right argument. The left argument and axis are required to have rank no more than 1 and are treated as vectors. Their lengths must match, and be less than or equal to the rank of the right argument. Then each element of the left argument applies to the right argument axis given by the corresponding element of the axis vector. Each axis may only be specified once, and unspecified axes are left unchanged.
When Take is called with [[Function axis|axis]], the axis determines how elements of the left argument correspond to axes of the right argument. The left argument and axis are required to have rank no more than 1 and are treated as vectors. Their lengths must match, and be less than or equal to the rank of the right argument. Then each element of the left argument applies to the right argument axis given by the corresponding element of the axis vector. Each axis may only be specified once, and unspecified axes are left unchanged.
=== Infinite left arguments ===
In [[J]] 4.02 (released 1998) and later, an [[infinity|infinite]] value in the left argument causes the corresponding axis of the right argument to be unchanged. In [[ngn/apl]], it simply causes an error.


=== APLX fills ===
=== APLX fills ===

Navigation menu