54 class CombineOp = plusEqOp<typename List::value_type>
66 const IndexType delta_;
93 const IndexType
delta,
103 inline IndexType
delta()
const
109 inline const IndexType&
lowSum()
const
115 inline const IndexType&
highSum()
const
122 const IndexType& indexVal,
void add(const IndexType &indexVal, const typename List::const_reference val, const CombineOp &cop=plusEqOp< typename List::value_type >())
IndexType delta() const
Return the delta.
const IndexType & highSum() const
Return the sum of all added elements >= max.
const IndexType & lowSum() const
Return the sum of all added elements < min.
BinSum(const IndexType min, const IndexType max, const IndexType delta)
Construct given min, max, delta.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
T value_type
Type of values the UList contains.
const T & const_reference
Type that can be used for storing into.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
Combination-Reduction operation for a parallel run.