Subarray: Difference between revisions

Jump to navigation Jump to search
31 bytes removed ,  09:27, 14 September 2022
A cell ''is'' a part with lesser rank.
m (cells are sub-arrays)
(A cell ''is'' a part with lesser rank.)
 
Line 1: Line 1:
:''The term sub-array may also be used to refer to an array [[cell]] or a part of an array with lesser [[depth]] or [[rank]] than the overall array.''
:''The term sub-array may also be used to refer part of an array with lesser [[rank]] (i.e. a [[cell]]) or [[depth]].''


A '''subarray''' (or '''sub-array''') of an array is another array which can be formed by selecting a contiguous section along each [[axis]]. The subarrays of an array are all those that result from [[Bracket indexing|indexing]] that array by a full set of [[index]] arrays each of which is either a [[scalar]] or a [[vector]] of sequential indices. The term subarray is used loosely in APL and rarely defined directly. Depending on context, scalar indices may be allowed only for [[Axis ordering|leading]] axes or not at all. If scalar indices are not allowed than a subarray shares every [[axis]] with the array that contains it and has equal [[rank]] to it; we might call such subarrays ''equal-rank'' subarrays. Otherwise a subarray has rank less than or equal to its containing array.
A '''subarray''' (or '''sub-array''') of an array is another array which can be formed by selecting a contiguous section along each [[axis]]. The subarrays of an array are all those that result from [[Bracket indexing|indexing]] that array by a full set of [[index]] arrays each of which is either a [[scalar]] or a [[vector]] of sequential indices. The term subarray is used loosely in APL and rarely defined directly. Depending on context, scalar indices may be allowed only for [[Axis ordering|leading]] axes or not at all. If scalar indices are not allowed than a subarray shares every [[axis]] with the array that contains it and has equal [[rank]] to it; we might call such subarrays ''equal-rank'' subarrays. Otherwise a subarray has rank less than or equal to its containing array.

Navigation menu