pub trait NDArrayReduceAll: NDArrayRead {
    // Required methods
    fn max_all(self) -> Result<Self::DType, Error>;
    fn min_all(self) -> Result<Self::DType, Error>;
    fn product_all(self) -> Result<Self::DType, Error>;
    fn sum_all(self) -> Result<Self::DType, Error>;
}
Expand description

Array reduce operations

Required Methods§

source

fn max_all(self) -> Result<Self::DType, Error>

Return the maximum of all elements in this array.

source

fn min_all(self) -> Result<Self::DType, Error>

Return the minimum of all elements in this array.

source

fn product_all(self) -> Result<Self::DType, Error>

Return the product of all elements in this array.

source

fn sum_all(self) -> Result<Self::DType, Error>

Return the sum of all elements in this array.

Object Safety§

This trait is not object safe.

Implementors§