Talk:Nub Sieve: Difference between revisions

Jump to navigation Jump to search
447 bytes added ,  14:13, 21 July 2023
no edit summary
(but why use the index-in-nub at all?)
No edit summary
Line 9: Line 9:


:: Ah. So, ok, that explains the <syntaxhighlight lang=apl inline>1/⊢</syntaxhighlight>… but why do index-in-nub before doing <syntaxhighlight lang=apl inline>⍳⍤≢=⍳⍨</syntaxhighlight>? why not just the naive <syntaxhighlight lang=apl inline>(⍳⍤≢=⍳⍨)⍤(1/⊢)</syntaxhighlight>?"
:: Ah. So, ok, that explains the <syntaxhighlight lang=apl inline>1/⊢</syntaxhighlight>… but why do index-in-nub before doing <syntaxhighlight lang=apl inline>⍳⍤≢=⍳⍨</syntaxhighlight>? why not just the naive <syntaxhighlight lang=apl inline>(⍳⍤≢=⍳⍨)⍤(1/⊢)</syntaxhighlight>?"
::: Compare results on <syntaxhighlight lang=apl inline>3+⎕CT×⍳10</syntaxhighlight>: the value indicated by <syntaxhighlight lang=apl inline>⍳⍤≢=⍳⍨</syntaxhighlight> doesn't match all argument elements, so it can't be said to reduce the entire argument to unique values. There's a short section on this [[Unique#Tolerant_comparison|for Unique]]. --[[User:Marshall|Marshall]] ([[User talk:Marshall|talk]]) 14:13, 21 July 2023 (UTC)

Navigation menu