Index: Difference between revisions

Jump to navigation Jump to search
164 bytes added ,  09:17, 15 November 2019
Miraheze>Marshall
Miraheze>Marshall
Line 39: Line 39:


In [[leading axis theory]] an array's [[shape]] may be split in two with leading [[Axis|axes]] forming the [[frame]] and trailing axes forming the shape of each [[cell]]. A [[vector]] of indices for the axes in the frame only selects a cell of the array. [[Squad indexing]] supports this kind of selection using a short [[simple]] left argument. Using a frame with the same length as that argument, the given indices correspond to leading axes of the right argument—the ones in the frame—and those axes are not present in the result. All the indices into a cell, corresponding to trailing axes, are implicit, and those axes are unchanged.
In [[leading axis theory]] an array's [[shape]] may be split in two with leading [[Axis|axes]] forming the [[frame]] and trailing axes forming the shape of each [[cell]]. A [[vector]] of indices for the axes in the frame only selects a cell of the array. [[Squad indexing]] supports this kind of selection using a short [[simple]] left argument. Using a frame with the same length as that argument, the given indices correspond to leading axes of the right argument—the ones in the frame—and those axes are not present in the result. All the indices into a cell, corresponding to trailing axes, are implicit, and those axes are unchanged.
== External links ==
* [https://www.sacrideo.us/apl-a-day-5-indexing-into-arrays/ Indexing into Arrays] (from [https://www.sacrideo.us/tag/apl-a-day/ APL a Day])


{{APL programming language}}
{{APL programming language}}
Anonymous user

Navigation menu