pub fn replace<T>(a: &mut Array<T>, cond: &Array<bool>, b: &Array<T>)where
T: HasAfEnum,Expand description
Inplace replace in Array based on a condition
This function does the C-equivalent of the following statement, except that the operation happens on a GPU for all elements simultaneously.
a = cond ? a : b; /// where cond, a & b are all objects of type Array§Parameters
ais the Array whose element will be replaced with element frombif corresponding element incondArray isTruecondis the Array with conditional valuesbis the Array whose element will replace the element in output if corresponding element incondArray isFalse
§Return Values
None