Back to Adaptive Vision Library Lite websiteYou are here:
Start »
Array Basics »
AvsFilter_CreateUniformArray
AvsFilter_CreateUniformArray
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Creates an array of the specified size with all elements initialized to the specified value.
Syntax
void avs::AvsFilter_CreateUniformArray
(
const int inSize,
const Type& inValue,
atl::Array<Type>& outArray
)
Parameters
|
Name |
Type |
Range |
Default |
Description |
 |
inSize |
const int |
0 -  |
|
Size of the array being constructed |
 |
inValue |
const Type& |
|
|
Common value of the array elements |
 |
outArray |
Array<Type>& |
|
|
Created array |
Examples
 |
 |
inSize = 5
inValue = 1
|
outArray = {1,1,1,1,1}
|
Errors
| Error type |
Description |
| DomainError |
Negative inSize value in CreateUniformArray. |
See Also