RANK ERROR: Difference between revisions
Jump to navigation
Jump to search
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 [[ | 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 |