OGS
MathLib::WeightedSum< Method > Struct Template Reference

Detailed Description

template<typename Method>
struct MathLib::WeightedSum< Method >

Computes weighted sum using given integration method. The weighted sum over all positions x_i in the integration method is computed as follows: \sum_{i = 0..Method::Order} (f(x_i) * w_i).

Template Parameters
MethodIntegration method.

Definition at line 51 of file WeightedSum.h.

#include <WeightedSum.h>

Static Public Member Functions

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

Member Function Documentation

◆ add()

template<typename Method >
template<typename Func >
static double MathLib::WeightedSum< Method >::add ( Func const & f)
inlinestatic
Template Parameters
FuncFunction type.

Definition at line 57 of file WeightedSum.h.

58 {
60 }
static double add(F const &f)
Definition WeightedSum.h:24

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


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