Back to FabImage Library websiteYou are here:
Start »
Function Reference »
Array Basics »
FisFilter_SetMultipleArrayElements
FisFilter_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: | fis |
Sets elements of an array to new values.
Syntax
void fis::FisFilter_SetMultipleArrayElements
(
ftl::Array<Type>& ioArray,
const ftl::Array<int>& inIndices,
bool inInverse,
const ftl::Array<Type>& inNewValues
)
Parameters
|
Name |
Type |
Default |
Description |
|
ioArray |
Array<Type>& |
|
|
 |
inIndices |
const Array<int>& |
|
Indices within the array |
 |
inInverse |
bool |
False |
Reversed order in the 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