lsst.afw  20.0.0-2-gf99403173
Public Member Functions | List of all members
lsst::afw::math::details::FunctionWrapper< BinaryFunctionT > Class Template Reference

Wrap an integrand in a call to a 1D integrator: romberg() More...

#include <Integrate.h>

Inheritance diagram for lsst::afw::math::details::FunctionWrapper< BinaryFunctionT >:
std::unary_function< BinaryFunctionT::second_argument_type, BinaryFunctionT::result_type >

Public Member Functions

 FunctionWrapper (BinaryFunctionT func, typename BinaryFunctionT::first_argument_type const x1, typename BinaryFunctionT::first_argument_type const x2, double const eps=1.0e-6)
 
BinaryFunctionT::result_type operator() (typename BinaryFunctionT::second_argument_type const y) const
 

Detailed Description

template<typename BinaryFunctionT>
class lsst::afw::math::details::FunctionWrapper< BinaryFunctionT >

Wrap an integrand in a call to a 1D integrator: romberg()

When romberg2D() is called, it wraps the integrand it was given in a FunctionWrapper functor. This wrapper calls romberg() on the integrand to get a 1D (along the x-coord, for constant y) result . romberg2D() then calls romberg() with the FunctionWrapper functor as an integrand.

Definition at line 908 of file Integrate.h.

Constructor & Destructor Documentation

◆ FunctionWrapper()

template<typename BinaryFunctionT >
lsst::afw::math::details::FunctionWrapper< BinaryFunctionT >::FunctionWrapper ( BinaryFunctionT  func,
typename BinaryFunctionT::first_argument_type const  x1,
typename BinaryFunctionT::first_argument_type const  x2,
double const  eps = 1.0e-6 
)
inline

Definition at line 911 of file Integrate.h.

Member Function Documentation

◆ operator()()

template<typename BinaryFunctionT >
BinaryFunctionT::result_type lsst::afw::math::details::FunctionWrapper< BinaryFunctionT >::operator() ( typename BinaryFunctionT::second_argument_type const  y) const
inline

Definition at line 914 of file Integrate.h.


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