Depth (operator): Difference between revisions

Jump to navigation Jump to search
→‎Publications: Benkard paper that uses a depth operator
(→‎Publications: Benkard paper that uses a depth operator)
 
(One intermediate revision by one other user not shown)
Line 14: Line 14:
For left argument <syntaxhighlight lang=apl inline>⍺</syntaxhighlight> and right argument <syntaxhighlight lang=apl inline>⍵</syntaxhighlight>,
For left argument <syntaxhighlight lang=apl inline>⍺</syntaxhighlight> and right argument <syntaxhighlight lang=apl inline>⍵</syntaxhighlight>,
<syntaxhighlight lang=apl>
<syntaxhighlight lang=apl>
     c  ⍝ Depth-c sub-arrays of ⍵ (monadic) or both arguments (dyadic)
     c  ⍝ Depth-c sub-arrays of ⍵ (monadic) or both arguments (dyadic)
   b c  ⍝ Depth-b sub-arrays of ⍺ and depth-c sub-arrays of ⍵ (dyadic)
   b c  ⍝ Depth-b sub-arrays of ⍺ and depth-c sub-arrays of ⍵ (dyadic)
   ⍤a b c  ⍝ Depth-a sub-arrays of ⍵ (monadic), depth-b sub-arrays of ⍺ and depth-c sub-arrays of ⍵ (dyadic)
   ⍥a b c  ⍝ Depth-a sub-arrays of ⍵ (monadic), depth-b sub-arrays of ⍺ and depth-c sub-arrays of ⍵ (dyadic)
</syntaxhighlight>
</syntaxhighlight>


Line 71: Line 71:
* [https://github.com/abrudz/primitives/blob/main/depth.aplo APL model]
* [https://github.com/abrudz/primitives/blob/main/depth.aplo APL model]
* [[dfns workspace]]: [https://dfns.dyalog.com/n_Depth.htm Depth] (this model does not correspond to the final design)
* [[dfns workspace]]: [https://dfns.dyalog.com/n_Depth.htm Depth] (this model does not correspond to the final design)
* [https://doi.org/10.1145/28315.28345 Replicate each, anyone?] by J. Philip Benkard at [[APL87]]


{{APL built-ins}}[[Category:Primitive operators]]
{{APL built-ins}}[[Category:Primitive operators]]

Navigation menu