RANK ERROR: Difference between revisions

Jump to navigation Jump to search
Fix major cell search link
m (Text replacement - "<source" to "<syntaxhighlight")
(Fix major cell search link)
 
Line 23: Line 23:
</syntaxhighlight>
</syntaxhighlight>


A RANK ERROR may be caused when argument ranks are incompatible in some other way. In languages with [[high-rank set functions]] such as [[Dyalog APL]] and [[J]], the right argument rank must be at least the left argument rank minus one. Calling it with a matrix left argument and a scalar right argument, which has a rank two smaller, gives a RANK ERROR:
A RANK ERROR may be caused when argument ranks are incompatible in some other way. In languages with [[major cell search]] such as [[Dyalog APL]] and [[J]], the right argument rank of [[Index Of]] must be at least the left argument rank minus one. Calling it with a matrix left argument and a scalar right argument, which has a rank two smaller, gives a RANK ERROR:
<syntaxhighlight lang=apl>
<syntaxhighlight lang=apl>
       (⍳3 4) ⍳ ⊂1 3
       (⍳3 4) ⍳ ⊂1 3

Navigation menu