MechSys  1.0
Computing library for simulations in continuum and discrete mechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Attributes
Numerical::MonteCarlo< Instance > Class Template Reference

#include <montecarlo.h>

List of all members.

Public Types

typedef double(Instance::* pFun )(double *x)
 Callback function.

Public Member Functions

 MonteCarlo (Instance *p2Inst, MCMethod method=VEGAS, size_t NCalls=500000)
double Integrate (pFun p2Fun, double *ri, double *rs)
 Integrate F(x)
double CallFun (double *r)
 Call F(x)

Static Public Attributes

static int WORKSPACE_SIZE = 3
 Workspace size.

template<typename Instance>
class Numerical::MonteCarlo< Instance >


Member Typedef Documentation

template<typename Instance>
typedef double(Instance::* Numerical::MonteCarlo< Instance >::pFun)(double *x)

Callback function.


Constructor & Destructor Documentation

template<typename Instance >
Numerical::MonteCarlo< Instance >::MonteCarlo ( Instance *  p2Inst,
MCMethod  method = VEGAS,
size_t  NCalls = 500000 
) [inline]

Constructor.


Member Function Documentation

template<typename Instance>
double Numerical::MonteCarlo< Instance >::CallFun ( double *  r) [inline]

Call F(x)

template<typename Instance >
double Numerical::MonteCarlo< Instance >::Integrate ( pFun  p2Fun,
double *  ri,
double *  rs 
) [inline]

Integrate F(x)


Member Data Documentation

template<typename Instance>
int Numerical::MonteCarlo< Instance >::WORKSPACE_SIZE = 3 [static]

Workspace size.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines