Enclose: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "http://help.dyalog.com" to "https://help.dyalog.com") |
(→Description: Clarify enclosing a simple scalar: it's always allowed but might not do anything) |
||
Line 55: | Line 55: | ||
== Description == | == Description == | ||
With no [[function axis]], Enclose returns a [[scalar]] array whose only [[element]] is the argument. In the [[flat array model]] this means that the argument is placed in a [[box]], and the result is this box as a scalar. In the [[nested array model]] it can simply be viewed as creating a new array. However, if the argument is a [[simple scalar]], then the result will match the argument because nested array theory dicatates that simple scalars [[float]]. | |||
Enclose (without axis) is the [[inverse]] of [[Mix]] and [[First]] in the sense that | == Properties == | ||
Enclose (without axis) is the [[inverse]] of both [[Mix]] and [[First]] in the sense that either of these undoes the additional nesting introduced by Enclose. | |||
== External links == | == External links == |