Trait NDArrayReduceAll

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§