Replace elements of an array based on an conditional array.
More...
Replace elements of an array based on an conditional array.
- Input values are retained when corresponding elements from condition array are true.
- Input values are replaced when corresponding elements from condition array are false.
- Parameters
-
| [in,out] | a | is the input array |
| [in] | cond | is the conditional array. |
| [in] | b | is the replacement array. |
- Note
- Values of
a are replaced with corresponding values of b, when cond is false.
- Parameters
-
| [in,out] | a | is the input array |
| [in] | cond | is the conditional array. |
| [in] | b | is the replacement array. |
- Note
- Values of
a are replaced with corresponding values of b, when cond is false.
| AFAPI void af::replace |
( |
array & |
a, |
|
|
const array & |
cond, |
|
|
const array & |
b |
|
) |
| |
- Parameters
-
| [in,out] | a | is the input array |
| [in] | cond | is the conditional array. |
| [in] | b | is the replacement array. |
- Note
- Values of
a are replaced with corresponding values of b, when cond is false.
| AFAPI void af::replace |
( |
array & |
a, |
|
|
const array & |
cond, |
|
|
const double & |
b |
|
) |
| |
- Parameters
-
| [in,out] | a | is the input array |
| [in] | cond | is the conditional array. |
| [in] | b | is the replacement value. |
- Note
- Values of
a are replaced with corresponding values of b, when cond is false.