all_true_all

Function all_true_all 

Source
pub fn all_true_all<T>(input: &Array<T>) -> (bool, bool)
Expand description

Find if all values of Array are non-zero

§Parameters

  • input is the input Array

§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));