CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Attributes
funct::NumericalIntegral< Integrator, F, X > Struct Template Reference

#include <Integral.h>

Classes

struct  function
 

Public Member Functions

 NumericalIntegral (const F &f, const Integrator &integrator)
 
double operator() (double min, double max) const
 

Private Attributes

function f_
 
Integrator integrator_
 

Detailed Description

template<typename Integrator, typename F, typename X = no_var>
struct funct::NumericalIntegral< Integrator, F, X >

Definition at line 33 of file Integral.h.

Constructor & Destructor Documentation

template<typename Integrator , typename F , typename X = no_var>
funct::NumericalIntegral< Integrator, F, X >::NumericalIntegral ( const F &  f,
const Integrator &  integrator 
)
inline

Definition at line 34 of file Integral.h.

34  :
35  f_(f), integrator_(integrator) { }
Integrator integrator_
Definition: Integral.h:49
double f[11][100]

Member Function Documentation

template<typename Integrator , typename F , typename X = no_var>
double funct::NumericalIntegral< Integrator, F, X >::operator() ( double  min,
double  max 
) const
inline

Definition at line 36 of file Integral.h.

References funct::NumericalIntegral< Integrator, F, X >::f_, and funct::NumericalIntegral< Integrator, F, X >::integrator_.

36  {
37  return integrator_(f_, min, max);
38  }
#define min(a, b)
Definition: mlp_lapack.h:161
const T & max(const T &a, const T &b)
Integrator integrator_
Definition: Integral.h:49

Member Data Documentation

template<typename Integrator , typename F , typename X = no_var>
function funct::NumericalIntegral< Integrator, F, X >::f_
private
template<typename Integrator , typename F , typename X = no_var>
Integrator funct::NumericalIntegral< Integrator, F, X >::integrator_
private