Function arrayfire::count_all
[−]
[src]
pub fn count_all(input: &Array) -> (f64, f64)
Count number of non-zero values in the Array
Parameters
input
is the input Array
Return Values
A tuple containing the count of non-zero values in the Array.
Examples
use arrayfire::{Dim4, print, randu, count_all}; let dims = Dim4::new(&[5, 5, 1, 1]); let a = randu::<f32>(dims); print(&a); println!("Result : {:?}", count_all(&a));