[][src]Function arrayfire::any_true_all

pub fn any_true_all<T>(input: &Array<T>) -> (bool, bool) where
    T: HasAfEnum,
    bool: HasAfEnum + Fromf64

Find if any value of Array is non-zero

Parameters

Return Values

A tuple containing the result of OR operation on all values of Array.

Examples

use arrayfire::{Dim4, print, randu, any_true_all};
let dims = Dim4::new(&[5, 5, 1, 1]);
let a = randu::<f32>(dims);
print(&a);
println!("Result : {:?}", any_true_all(&a));