Trait afarray::ArrayInstanceProduct
source · [−]pub trait ArrayInstanceProduct<T>: ArrayInstancewhere
T: HasAfEnum,
T::ProductOutType: DType,{
type Product: HasAfEnum;
fn product(&self) -> T::ProductOutType;
fn product_dtype() -> NumberType { ... }
}
Expand description
Defines common reduction operation product
.
Required Associated Types
Required Methods
sourcefn product(&self) -> T::ProductOutType
fn product(&self) -> T::ProductOutType
Calculate the cumulative product.
Provided Methods
sourcefn product_dtype() -> NumberType
fn product_dtype() -> NumberType
The NumberType
of the product of this array.