def reduce_counted

stelliferous@0.0.2.0 · tensor.bend:503

import stelliferous@0.0.2.0/tensor.bend as Tensor
import Base

503def reduce_counted(~Element: Data,~operation: Element -> Element -> Element,name: String,pair: Tensor<Element> & U32,+initial: Element) -> Tensor<Element>:
504  (tensor,+count) = pair
505  scalar_result(~Element,initial,count,reduce(~Element,~Element,~operation,name,tensor,initial))

Uses (7)

Used by (1)