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 - 1000000 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.


inSize = 5
inValue = 1
outArray = {1,1,1,1,1}


This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Negative inSize value in CreateUniformArray.

Complexity Level

This filter is available on Basic Complexity Level.

See Also

  • CreateArray – Creates an array from up to 8 individual objects.