Major cell: Difference between revisions

Jump to navigation Jump to search
m
Text replacement - "High-rank set functions" to "Major cell search"
m (Text replacement - "</source>" to "</syntaxhighlight>")
m (Text replacement - "High-rank set functions" to "Major cell search")
Tags: Mobile edit Mobile web edit
 
Line 19: Line 19:
└──────────┴─────────┴───────┘
└──────────┴─────────┴───────┘
</syntaxhighlight>
</syntaxhighlight>
Given another array <syntaxhighlight lang=apl inline>B</syntaxhighlight> we can search for cells of <syntaxhighlight lang=apl inline>B</syntaxhighlight> which [[match]] major cells of <syntaxhighlight lang=apl inline>B</syntaxhighlight>. [[High-rank set functions|High-rank]] [[Index-of]] always searches for right argument cells whose rank matches the rank of a left argument major cell: if the right argument is a [[vector]] and not a [[matrix]] then it searches for the entire vector rather than its major cells (which are [[scalar]]s).
Given another array <syntaxhighlight lang=apl inline>B</syntaxhighlight> we can search for cells of <syntaxhighlight lang=apl inline>B</syntaxhighlight> which [[match]] major cells of <syntaxhighlight lang=apl inline>B</syntaxhighlight>. [[Major cell search|High-rank]] [[Index-of]] always searches for right argument cells whose rank matches the rank of a left argument major cell: if the right argument is a [[vector]] and not a [[matrix]] then it searches for the entire vector rather than its major cells (which are [[scalar]]s).
<syntaxhighlight lang=apl>
<syntaxhighlight lang=apl>
       ⎕←B ← ↑ 4,/⍳6
       ⎕←B ← ↑ 4,/⍳6

Navigation menu