pub trait NDArrayReduce: NDArray + Debug {
    type Output: Access<Self::DType>;

    // Required methods
    fn max(
        self,
        axes: Axes,
        keepdims: bool
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
    fn min(
        self,
        axes: Axes,
        keepdims: bool
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
    fn product(
        self,
        axes: Axes,
        keepdims: bool
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
    fn sum(
        self,
        axes: Axes,
        keepdims: bool
    ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>;
}
Expand description

Axis-wise array reduce operations

Required Associated Types§

Required Methods§

source

fn max( self, axes: Axes, keepdims: bool ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>

Construct a max-reduce operation over the given axes.

source

fn min( self, axes: Axes, keepdims: bool ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>

Construct a min-reduce operation over the given axes.

source

fn product( self, axes: Axes, keepdims: bool ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>

Construct a product-reduce operation over the given axes.

source

fn sum( self, axes: Axes, keepdims: bool ) -> Result<Array<Self::DType, Self::Output, Self::Platform>, Error>

Construct a sum-reduce operation over the given axes.

Object Safety§

This trait is not object safe.

Implementors§