[][src]Function arrayfire::replace_scalar

pub fn replace_scalar<T>(a: &mut Array<T>, cond: &Array<bool>, b: f64) where
    T: HasAfEnum

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 are Arrays and b is scalar(f64)


Return Values