Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
o2scl::inte_il< func_t, def_inte_t, fp_t > Class Template Reference

Integrate over $ (-\infty,b] $. More...

#include <inte.h>

Detailed Description

template<class func_t, class def_inte_t, class fp_t = double>
class o2scl::inte_il< func_t, def_inte_t, fp_t >

Note
This class only works if the base integration type def_inte_t avoids evaluating the function at the left-hand end point.

Definition at line 137 of file inte.h.

Public Types

typedef std::function< fp_t(fp_t)> internal_funct
 Internal function type based on floating-point type. More...
 

Public Member Functions

virtual int integ_err (func_t &func, fp_t b, fp_t &res, fp_t &err)
 Integrate function func from a to b giving result res and error err.
 

Protected Member Functions

virtual fp_t transform (fp_t t)
 Transform from $ t \in (0,1] $ to $ x \in (-\infty,b] $.
 

Protected Attributes

func_t * user_func
 A pointer to the user-specified function.
 
fp_t upper_limit
 The upper limit.
 
inte< internal_funct, fp_t > * it
 The base integration object.
 
internal_funct fo
 Function object.
 

Integration object

def_inte_t def_inte
 Default integration object.
 
int set_inte (inte< internal_funct, fp_t > &i)
 Set the base integration object to use.
 

Member Typedef Documentation

◆ internal_funct

template<class func_t , class def_inte_t , class fp_t = double>
typedef std::function<fp_t(fp_t)> o2scl::inte_il< func_t, def_inte_t, fp_t >::internal_funct

Definition at line 173 of file inte.h.


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

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).