29 #ifndef GUM_SUM_AGGREGATOR_H 30 #define GUM_SUM_AGGREGATOR_H 32 #include <agrum/tools/multidim/aggregators/multiDimAggregator.h> 50 template <
typename GUM_SCALAR >
54 Sum(
const Sum< GUM_SCALAR >& from);
87 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 88 extern template class Sum<
double >;
95 #include <agrum/tools/multidim/aggregators/sum_tpl.h>
virtual MultiDimContainer< GUM_SCALAR > * newFactory() const
This method creates a clone of this object, without its content (including variable), you must use this method if you want to ensure that the generated object has the same type than the object containing the called newFactory()
INLINE void emplace(Args &&... args)
virtual std::string aggregatorName() const
Sum(const Sum< GUM_SCALAR > &from)
virtual Idx neutralElt_() const
neutralElt_() is the result value for the first application of fold_
INLINE std::ostream & operator<<(std::ostream &s, const MultiDimAggregator< GUM_SCALAR > &ag)
For friendly displaying the content of the array.
virtual Idx fold_(const DiscreteVariable &v, Idx i1, Idx i2, bool &stop_iteration) const
fold_ is applied on value i1 for variable v. the actual result for precedent applications is i2...