Depth: Difference between revisions

Jump to navigation Jump to search
27 bytes added ,  21:00, 10 September 2022
m
Text replacement - "</source>" to "</syntaxhighlight>"
m (Text replacement - "</source>" to "</syntaxhighlight>")
Tags: Mobile edit Mobile web edit
Line 16: Line 16:
       ≡('ab' 'cde')('fg' 'hi')
       ≡('ab' 'cde')('fg' 'hi')
3
3
</source>
</syntaxhighlight>


The signed depth of an array is an integer with [[Magnitude|absolute value]] equal to its positive depth. It is negative if and only if the array does not have a consistent depth.  
The signed depth of an array is an integer with [[Magnitude|absolute value]] equal to its positive depth. It is negative if and only if the array does not have a consistent depth.  
Line 26: Line 26:
In the [[flat array model]], the depth is the number of levels of [[box]]ing in an array. More precisely, the depth of a non-boxed or [[empty]] array is 0, and a non-empty boxed array has depth equal to one plus the maximum of the depths of the arrays it contains.
In the [[flat array model]], the depth is the number of levels of [[box]]ing in an array. More precisely, the depth of a non-boxed or [[empty]] array is 0, and a non-empty boxed array has depth equal to one plus the maximum of the depths of the arrays it contains.


The [[J]] language uses the token <source lang=j inline>L.</source> and name "Level Of" for depth.
The [[J]] language uses the token <source lang=j inline>L.</syntaxhighlight> and name "Level Of" for depth.


== External links ==
== External links ==
Line 38: Line 38:
* [https://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Depth.htm Dyalog]
* [https://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Depth.htm Dyalog]
* [http://microapl.com/apl_help/ch_020_020_350.htm APLX]
* [http://microapl.com/apl_help/ch_020_020_350.htm APLX]
* [https://www.jsoftware.com/help/dictionary/dlcapdot.htm J Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/lcapdot J NuVoc] (as <source lang=apl inline>L.</source> "Level of")  
* [https://www.jsoftware.com/help/dictionary/dlcapdot.htm J Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/lcapdot J NuVoc] (as <source lang=apl inline>L.</syntaxhighlight> "Level of")  
* [https://mlochbaum.github.io/BQN/doc/depth.html#the-depth-function BQN]
* [https://mlochbaum.github.io/BQN/doc/depth.html#the-depth-function BQN]
{{APL features}}
{{APL features}}
{{APL built-ins}}[[Category:Primitive functions]]
{{APL built-ins}}[[Category:Primitive functions]]

Navigation menu