4,494
edits
m (7 revisions imported: Migrate from miraheze) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 34: | Line 34: | ||
Each of the values in an index corresponds to one [[axis]] of the indexed array. When considered in isolation, one of these values (a [[scalar]] number) is called an index ''along'' the corresponding axis. Selecting from the array using this index produces an array whose [[rank]] is one smaller than the initial array (and it cannot be done to a [[scalar]], as there are no axes along which to index). This array is sometimes called a "slice" or [[hyperplane]] of the array. Selecting on the first axis gives a [[major cell]], one kind of hyperplane. | Each of the values in an index corresponds to one [[axis]] of the indexed array. When considered in isolation, one of these values (a [[scalar]] number) is called an index ''along'' the corresponding axis. Selecting from the array using this index produces an array whose [[rank]] is one smaller than the initial array (and it cannot be done to a [[scalar]], as there are no axes along which to index). This array is sometimes called a "slice" or [[hyperplane]] of the array. Selecting on the first axis gives a [[major cell]], one kind of hyperplane. | ||
The set of possible indices into an array as a whole is the [[wikipedia: | The set of possible indices into an array as a whole is the [[wikipedia:Cartesian product|Cartesian product]] of the possible indices into each axis. | ||
== Index of a cell == | == Index of a cell == | ||
Line 44: | Line 44: | ||
* [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]) | * [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 features}} | {{APL features}}[[Category:Arrays]] |