Class inte_subdiv (o2scl)

O2scl : Class List

template<class fp_t>
class inte_subdiv

Integration subdivision object for o2scl::inte_adapt_cern.

Public Functions

inline inte_subdiv(int n)

Constructor.

inline void resize(int n)

Resize the object to allow at least n subdivisions.

inline size_t get_nsubdivisions()

Return the number of subdivisions used in the last integration.

inline int get_ith_subdivision(size_t i, fp_t &xlow, fp_t &xhigh, fp_t &value, fp_t &errsq)

Return the ith subdivision.

template<class vec_t>
inline int get_subdivisions(vec_t &xlow, vec_t &xhigh, vec_t &value, vec_t &errsq)

Return all of the subdivisions.

Public Members

int nsub

The number of subdivisions (set in resize())

int prev_subdiv

The previous number of subdivisions.

std::vector<fp_t> xlo

Lower end of subdivision.

std::vector<fp_t> xhi

High end of subdivision.

std::vector<fp_t> tval

Value of integral for subdivision.

std::vector<fp_t> ters

Squared error for subdivision.