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

◆ sum()

template<typename T , int I>
static T aff::util::Inline< T, I >::sum ( const T *  array)
inlinestatic

calculate sum of all elements

Parameters
array$ A_l $
Returns
$ \sum\limits_{l=0}^{I-1}A_l $

Definition at line 82 of file rawarfun.h.

Referenced by aff::inline_sum().

83  {
84  return(array[I-1]+Inline<T,I-1>::sum(array));
85  }
static T sum(const T *array)
calculate sum of all elements
Definition: rawarfun.h:82
Here is the caller graph for this function: