[][src]Function arrayfire::all_true_all

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

Find if all values of Array are non-zero

Parameters

Return Values

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

Examples

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