Trait CountAxisExt

Source
pub trait CountAxisExt<A, S, D>
where S: Data<Elem = A>, A: Float, D: Dimension + RemoveAxis, <D as Dimension>::Smaller: Dimension,
{ // Required methods fn count_finite_axis(&self, axis: Axis) -> Array<usize, D::Smaller>; fn count_non_finite_axis(&self, axis: Axis) -> Array<usize, D::Smaller>; }

Required Methods§

Source

fn count_finite_axis(&self, axis: Axis) -> Array<usize, D::Smaller>

Returns the number of finite values for each index along the given axis. For example, in a matrix, specifying Axis(0) will give the number of finite values per row.

Source

fn count_non_finite_axis(&self, axis: Axis) -> Array<usize, D::Smaller>

Returns the number of non-finite values for each index along the given axis. For example, in a matrix, specifying Axis(0) will give the number of non-finite values per row.

Implementations on Foreign Types§

Source§

impl<A, S, D> CountAxisExt<A, S, D> for ArrayBase<S, D>
where A: Float, S: Data<Elem = A>, D: Dimension + RemoveAxis, <D as Dimension>::Smaller: Dimension, Array<usize, <D as Dimension>::Smaller>: FromIterator<usize>,

Implementors§