Function smartnoise_runtime::components::count::count[][src]

pub fn count<T>(data: &ArrayD<T>) -> Result<ArrayD<Integer>>

Gets number of rows of data.

Arguments

Return

Number of rows in data.

Example

use ndarray::{ArrayD, arr1, arr2};
use smartnoise_runtime::components::count::count;
let data = arr2(&[ [false, false, true], [true, true, true] ]).into_dyn();
let n = count(&data).unwrap();
assert!(n.first().unwrap() == &2);