Trait ha_ndarray::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§
sourcefn max_all(self) -> Result<Self::DType, Error>
fn max_all(self) -> Result<Self::DType, Error>
Return the maximum of all elements in this array.
sourcefn min_all(self) -> Result<Self::DType, Error>
fn min_all(self) -> Result<Self::DType, Error>
Return the minimum of all elements in this array.
sourcefn product_all(self) -> Result<Self::DType, Error>
fn product_all(self) -> Result<Self::DType, Error>
Return the product of all elements in this array.
Object Safety§
This trait is not object safe.