Fill element: Difference between revisions

Jump to navigation Jump to search
160 bytes added ,  13:29, 4 November 2019
no edit summary
Miraheze>Marshall
(Created page with "A '''fill element''' is an element used for the result of a function when no element from the argument or another relevant array is used. The fill element is usual...")
 
Miraheze>Marshall
No edit summary
Line 2: Line 2:


Fills are one way to convert an [[empty array]] into a non-empty array. [[Reduction]] along an empty [[axis]] also produces such a transition, but in this case an [[identity element]] for the reducing function is used instead of a fill.
Fills are one way to convert an [[empty array]] into a non-empty array. [[Reduction]] along an empty [[axis]] also produces such a transition, but in this case an [[identity element]] for the reducing function is used instead of a fill.
== Uses ==


The following functions and operators may use fill elements in their results.
The following functions and operators may use fill elements in their results.
Line 28: Line 30:


In languages with [[function rank]], fills are similarly used to force result cells of a function with rank to have a uniform [[shape]]. This means that fills may be used by any primitive function which can produce differently-shaped result cells in a single application. A notable example is [[Unbox]], which behaves like the nested Mix because of this feature of function rank.
In languages with [[function rank]], fills are similarly used to force result cells of a function with rank to have a uniform [[shape]]. This means that fills may be used by any primitive function which can produce differently-shaped result cells in a single application. A notable example is [[Unbox]], which behaves like the nested Mix because of this feature of function rank.
== External links ==
=== Documentation ===
* [http://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Fill%20Elements.htm Dyalog]
Anonymous user

Navigation menu