BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
IntegratorMCMiser.h File Reference

Description

Defines and implements template class IntegratorMCMiser.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file IntegratorMCMiser.h.

Include dependency graph for IntegratorMCMiser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  IntegratorMCMiser< T >::CallBackHolder
 structure holding the object and possible extra parameters More...
 
class  IntegratorMCMiser< T >
 Template class to use Monte Carlo MISER integration of class member functions. More...
 

Macros

#define BORNAGAIN_BASE_MATH_INTEGRATORMCMISER_H
 

Typedefs

template<class T >
using miser_integrand = double(T::*)(const double *, size_t, const void *) const
 Alias template for member function with signature double f(double) More...
 
template<class T >
using P_integrator_miser = std::unique_ptr< IntegratorMCMiser< T > >
 Alias template for handle to a miser integrator. More...
 

Functions

template<class T >
P_integrator_miser< T > make_integrator_miser (const T *object, miser_integrand< T > mem_function, size_t dim)
 Template function to create an integrator object. More...
 

Macro Definition Documentation

◆ BORNAGAIN_BASE_MATH_INTEGRATORMCMISER_H

#define BORNAGAIN_BASE_MATH_INTEGRATORMCMISER_H

Definition at line 21 of file IntegratorMCMiser.h.

Typedef Documentation

◆ miser_integrand

template<class T >
using miser_integrand = double (T::*)(const double*, size_t, const void*) const

Alias template for member function with signature double f(double)

Definition at line 28 of file IntegratorMCMiser.h.

◆ P_integrator_miser

template<class T >
using P_integrator_miser = std::unique_ptr<IntegratorMCMiser<T> >

Alias template for handle to a miser integrator.

Definition at line 74 of file IntegratorMCMiser.h.

Function Documentation

◆ make_integrator_miser()

template<class T >
P_integrator_miser<T> make_integrator_miser ( const T *  object,
miser_integrand< T >  mem_function,
size_t  dim 
)

Template function to create an integrator object.

Definition at line 79 of file IntegratorMCMiser.h.

81 {
82  P_integrator_miser<T> P_integrator(new IntegratorMCMiser<T>(object, mem_function, dim));
83  return P_integrator;
84 }
std::unique_ptr< IntegratorMCMiser< T > > P_integrator_miser
Alias template for handle to a miser integrator.
Template class to use Monte Carlo MISER integration of class member functions.