Trait afarray::ArrayInstanceReduce[][src]

pub trait ArrayInstanceReduce<T>: ArrayInstance where
    T: HasAfEnum,
    T::AggregateOutType: DType,
    T::ProductOutType: DType
{ type Product: HasAfEnum; type Sum: HasAfEnum; fn product(&self) -> T::ProductOutType;
fn sum(&self) -> T::AggregateOutType; fn product_dtype() -> NumberType { ... }
fn sum_dtype() -> NumberType { ... } }
Expand description

Defines common reduction operations product and sum.

Associated Types

Required methods

Calculate the cumulative product.

Calculate the cumulative sum.

Provided methods

The NumberType of the product of this array.

The NumberType of the sum of this array.

Implementors