Major cell: Difference between revisions

Jump to navigation Jump to search
No change in size ,  11:27, 15 November 2019
m
no edit summary
Miraheze>Marshall
(Created page with "In the APL array model and leading axis theory, a '''major cell''' is a cell of an array which has rank one smaller than the rank of the array, or equal to it...")
 
Miraheze>Marshall
mNo edit summary
Line 19: Line 19:
└──────────┴─────────┴───────┘
└──────────┴─────────┴───────┘
</source>
</source>
Given another array <source lang=apl inline>B</source> we can search for cells of <source lang=apl inline>B</source> which [[match]] major cells of <source lang=apl inline>B</source>. [[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 <source lang=apl inline>B</source> we can search for cells of <source lang=apl inline>B</source> which [[match]] major cells of <source lang=apl inline>B</source>. [[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).
<source lang=apl>
<source lang=apl>
       ⊢B ← ↑ 4,/⍳6
       ⊢B ← ↑ 4,/⍳6
Anonymous user

Navigation menu