2,954
edits
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...") |
m (Text replacement - "Category:Function Characteristics" to "Category:Function characteristics") |
||
(3 intermediate revisions by 3 users not shown) | |||
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] | |||
{{APL features}}[[Category:Function characteristics]] |