Singleton: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
Miraheze>Adám Brudzewsky
m (Text replacement - "</code>" to "</source>")
Miraheze>Marshall
mNo edit summary
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 <source lang=apl inline>1=×/⍬</source>.
Every [[scalar]] is a singleton, because <source lang=apl inline>1=×/⍬</source>.


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

Revision as of 14:08, 14 November 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 1=×/⍬.

Singletons may be subject to singleton extension.