Array model: Difference between revisions

Jump to navigation Jump to search
14 bytes removed ,  14:30, 17 October 2019
Miraheze>Adám Brudzewsky
Miraheze>Adám Brudzewsky
Line 52: Line 52:


=== Depth ===
=== Depth ===
 
{{Main|Depth}}
''Main article: [[Depth]]''


The depth is the level of nesting. For example an array of simple (i.e. non-nested) scalars has depth 1, an array containing only depth 1 arrays has depth 2 and a simple scalar (e.g a number or character) has depth 0. However, for some arrays it's not so easy. An array may contain both vectors and scalars. In cases like this, some APLs report the depth is as negative.
The depth is the level of nesting. For example an array of simple (i.e. non-nested) scalars has depth 1, an array containing only depth 1 arrays has depth 2 and a simple scalar (e.g a number or character) has depth 0. However, for some arrays it's not so easy. An array may contain both vectors and scalars. In cases like this, some APLs report the depth is as negative.

Navigation menu