OGS
MathLib::detail::SUM< I, Method > Struct Template Reference

Detailed Description

template<unsigned I, typename Method>
struct MathLib::detail::SUM< I, Method >

Definition at line 19 of file WeightedSum.h.

#include <WeightedSum.h>

Static Public Member Functions

template<typename F >
static double add (F const &f)
 

Member Function Documentation

◆ add()

template<unsigned I, typename Method >
template<typename F >
static double MathLib::detail::SUM< I, Method >::add ( F const & f)
inlinestatic

Definition at line 24 of file WeightedSum.h.

25 {
26 return f(Method::X[I - 1]) * Method::W[I - 1] + SUM<I - 1, Method>::add(f);
27 }
static double add(F const &f)
Definition WeightedSum.h:24

References MathLib::detail::SUM< I, Method >::add().

Referenced by MathLib::detail::SUM< I, Method >::add(), and MathLib::WeightedSum< Method >::add().


The documentation for this struct was generated from the following file: