Function axis: Difference between revisions
Jump to navigation
Jump to search
→Functions with Axis
Miraheze>Marshall (Created page with "In many APLs the behavior of a function may be modified using bracket notation, for example <code>⌽[2]</code> to Rotate along the second axis. Axis specification was...") |
Miraheze>Adám Brudzewsky |
||
Line 3: | Line 3: | ||
== Functions with Axis == | == Functions with Axis == | ||
The following [[monads]] may allow an axis: | The following [[Monadic function|monads]] may allow an axis: | ||
* [[Mix]] accepts a list of axes to specify where the axes of argument elements will be placed in the result. | * [[Mix]] accepts a list of axes to specify where the axes of argument elements will be placed in the result. | ||
* [[Ravel]] accepts a list of axes which are combined, or a single fractional number to add a length-1 axis. | * [[Ravel]] accepts a list of axes which are combined, or a single fractional number to add a length-1 axis. | ||
Line 10: | Line 10: | ||
* [[Reverse]] reverses along the specified axis. | * [[Reverse]] reverses along the specified axis. | ||
The following [[dyads]] may allow one: | The following [[Dyadic function|dyads]] may allow one: | ||
* [[Scalar dyadics]] accept a list of axes to override [[conformability]] rules: it specifies , for each axis in the lower-rank (or left, in case of a tie) argument, which axis in the other argument it is paired with. | * [[Scalar dyadics]] accept a list of axes to override [[conformability]] rules: it specifies , for each axis in the lower-rank (or left, in case of a tie) argument, which axis in the other argument it is paired with. | ||
* [[Catenate]] combines along the selected axis, adding a new axis if a non-integer axis is given. | * [[Catenate]] combines along the selected axis, adding a new axis if a non-integer axis is given. |