pub fn selectl<T>(a: f64, cond: &Array<bool>, b: &Array<T>) -> Array<T>where
T: HasAfEnum,Expand description
Element wise conditional operator for Arrays
This function does the C-equivalent of the following statement, except that the operation happens on a GPU for all elements simultaneously.
c = cond ? a : b; /// where a is a scalar(f64) and b is Array§Parameters
ais the scalar that is assigned to output if corresponding element incondArray isTruecondis the Array with conditional valuesbis the Array whose element will be assigned to output if corresponding element incondArray isFalse
§Return Values
An Array