Initialize Array

Description

Creates a n-dimensional tensor in which every element is initialized to the value of element. Type : polymorphic.

 

Documentation illustration (illustration unavailable in the archive).

Input parameters

 

Documentation illustration (illustration unavailable in the archive). element : float, value used to initialize all elements of initialized tensor.
Documentation illustration (illustration unavailable in the archive). shape : array, the size of dimensions 0..n-1.

Output parameters

 

Documentation illustration (illustration unavailable in the archive). initialized array : class, tensor of the same type as the type you wire to element.

Examples

All these examples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Accelerator library to run it).

Documentation illustration (illustration unavailable in the archive).