Class inte_pcubature::cache (o2scl)

O2scl : Class List

class o2scl::inte_pcubature::cache

Cache of the values for the m[dim] grid.

For adaptive cubature, thanks to the nesting of the C-C rules, we can re-use the values from coarser grids for finer grids, and the coarser grids are also used for error estimation.

A grid is determined by an m[dim] array, where m[i] denotes 2^(m[i]+1)+1 points in the i-th dimension.

If mi < dim, then we only store the values corresponding to the difference between the m grid and the grid with m[mi] -> m[mi]-1. (m[mi]-1 == -1 corresponds to the trivial grid of one point in the center.)

Public Functions

inline cache()
inline cache(const cache &e)
inline cache &operator=(const cache &e)

Public Members

std::vector<size_t> m

Desc.

size_t mi

Desc.

vec_t val

Desc.