Replace elements of an array based on an conditional array.
More...
Replace elements of an array based on an conditional array.
If the condition array has an element as true, then the element is replaced by the array/value, otherwise no change.
- Parameters
-
[in,out] | a | is the array whose values are replaced by b when cond is false |
[in] | cond | is the conditional array |
[in] | b | is the array containing elements that replaces elements of a where cond is false |
- Parameters
-
[in,out] | a | is the array whose values are replaced by b when cond is false |
[in] | cond | is the conditional array |
[in] | b | is the scalar that replaces the false parts of a |
- Parameters
-
[in,out] | a | is the array whose values are replaced with values from b when cond is false |
[in] | cond | is the conditional array |
[in] | b | is the array containing elements which replace elements in a when cond is false |
- Parameters
-
[in,out] | a | is the array whose values are replaced with values from b when cond is false |
[in] | cond | is the conditional array |
[in] | b | is value that replaces elements in a when cond is false |