Initialize Array function: Difference between revisions
Appearance
Update and clarify contents |
m Add link to the Build Array function |
||
| Line 18: | Line 18: | ||
* For large data sets, use the '''Initialize Array''' function to reserve memory and [[Replace Array Subset function|Replace Array Subset]] to replace elements. | * For large data sets, use the '''Initialize Array''' function to reserve memory and [[Replace Array Subset function|Replace Array Subset]] to replace elements. | ||
== See also == | |||
* [[Build Array function]] | |||
[[Category:Array Palette]] | [[Category:Array Palette]] | ||
Revision as of 16:29, 6 September 2019

| Object information | |
|---|---|
| Owning palette(s) | Array palette |
| Type | Function |
| Requires | Basic Development Environment |
The Initialize Array function creates an array in which each element is initialized to the specified value.
Usage
Connect an element of any data type to the element input terminal and specify the desired dimension size at dimension size 0. This creates a new array with the specified number of elements, in which each element is initialized to the specified value.
Create multidimensional arrays by dragging the upper or lower side of the node. The node can be resized for up to 1997 dimensions.
Best practice
- For large data sets, use the Initialize Array function to reserve memory and Replace Array Subset to replace elements.

