Trait afarray::ArrayInstanceSum
source · pub trait ArrayInstanceSum<T>: ArrayInstancewhere
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§
sourcefn sum(&self) -> T::AggregateOutType
fn sum(&self) -> T::AggregateOutType
Calculate the cumulative sum.
Provided Methods§
sourcefn sum_dtype() -> NumberType
fn sum_dtype() -> NumberType
The NumberType
of the sum of this array.