Singleton: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
Miraheze>Marshall
(Created page with "A singleton is an array with bound 1. Equivalently, its shape consists entirely of 1s. It may have any rank. Every scalar is a singleton, because <code>1=×/...")
 
Miraheze>Adám Brudzewsky
m (Text replacement - "<code>" to "<source lang=apl inline>")
Line 1: Line 1:
A singleton is an array with [[bound]] 1. Equivalently, its [[shape]] consists entirely of 1s. It may have any [[rank]].
A singleton is an array with [[bound]] 1. Equivalently, its [[shape]] consists entirely of 1s. It may have any [[rank]].


Every [[scalar]] is a singleton, because <code>1=×/⍬</code>.
Every [[scalar]] is a singleton, because <source lang=apl inline>1=×/⍬</code>.


Singletons may be subject to [[singleton extension]].
Singletons may be subject to [[singleton extension]].

Revision as of 09:07, 29 October 2019

A singleton is an array with bound 1. Equivalently, its shape consists entirely of 1s. It may have any rank.

Every scalar is a singleton, because <source lang=apl inline>1=×/⍬.

Singletons may be subject to singleton extension.