AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ sum()

template<class C >
C::Tvalue aff::func::sum ( const C &  c)

Function template to extract the sum of all samples stored in a container

Parameters
Cany container class like aff::Array<double> (this value is deduced by the compiler)
cany container of numerical values
Returns
sum of all samples in the container
See also
aff::func::util::collect, aff::func::util::Extractsum

Definition at line 89 of file sum.h.

Referenced by main().

90  {
91  return(aff::func::util::collect<C, aff::func::util::Extractsum>(c));
92  } // sum()
Here is the caller graph for this function: