Trait afarray::ArrayInstanceSum
source · [−]pub trait ArrayInstanceSum<T>: ArrayInstance where
T: HasAfEnum,
T::AggregateOutType: DType, {
type Sum: HasAfEnum;
fn sum(&self) -> T::AggregateOutType;
fn sum_dtype() -> NumberType { ... }
}
Expand description
Defines common reduction operation sum
.
Required Associated Types
Required Methods
fn sum(&self) -> T::AggregateOutType
fn sum(&self) -> T::AggregateOutType
Calculate the cumulative sum.
Provided Methods
fn sum_dtype() -> NumberType
fn sum_dtype() -> NumberType
The NumberType
of the sum of this array.