Back to Adaptive Vision Studio website
You are here: Start » Filter Reference » Array Basics » CreateUniformArray
Creates an array of the specified size with all elements initialized to the specified value.
| Name | Type | Range | Description | |
|---|---|---|---|---|
![]() |
inSize | Integer | 0 - ![]() |
Size of the array being constructed |
![]() |
inValue | <T> | Common value of the array elements | |
![]() |
outArray | <T>Array | Created array | |
The type of this filter is defined using the type variable T which represents any valid type. Read more.
Examples
![]() |
![]() |
|
inSize = 5 inValue = 1 |
outArray = {1,1,1,1,1} |
Errors
This filter can throw an exception to report error. Read how to deal with errors here: Error Handling
| Error type | Description |
|---|---|
| DomainError | Negative inSize value in CreateUniformArray. |
Complexity Level
This filter is available on Basic Complexity Level.



