Back to Adaptive Vision Library Lite website
You are here: Start » All Functions » Array Basics » AvsFilter_SetMultipleArrayElements
AvsFilter_SetMultipleArrayElements
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
| Header: | STD.h |
|---|---|
| Namespace: | avs |
Sets elements of an array to new values.
Syntax
void avs::AvsFilter_SetMultipleArrayElements ( atl::Array<Type>& ioArray, const atl::Array<int>& inIndices, bool inInverse, const atl::Array<Type>& inNewValues )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
| ioArray | Array<Type>& | |||
![]() |
inIndices | const Array<int>& | Indices within the array | |
![]() |
inInverse | bool | False | Determines if the indices are counted from beginning or from end of the input array |
![]() |
inNewValues | const Array<Type>& | Values to be set |
Examples
![]() |
![]() |
|
inArray = {1,4,3,2,5} inIndices = {0,2,4} inNewValues = {8,7,6} |
outArray = {8,4,7,2,6} |
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Inconsistent array lengths in SetMultipleArrayElements. |
| DomainError | Index out of range in SetMultipleArrayElements. |
See Also
- AvsFilter_SetArrayElement – Sets an element of an array to a new value.
- AvsFilter_GetArrayElement – Extracts a single element from an array at the specified index.


