vector of, functions returning reals And taking as argument:
One can avoid the passing around of the ct refs to a and b but the price is to keep a copy of them (they are unknown at construction time) On the other hand the vector integration variable has to be created.
Here is the tradeoff; this is avoiding the dimension limits checks during integration at the price of these asignments during construction. Explicit template instantiation is of no use, an object is needed (notice 'this' is needed for the asignment.) If not all the dimensions up the maximum number are used the waste goes into storage of the functions (in fact only one is used)
Integrates a vector or scalar function of vector domain.
Uses a collection of arbitrary 1D integrators along each of the dimensions. A template recursion along dimensions avoids calling depth test or virtual functions.
This class generalizes to an arbitrary number of dimensions the functionality in class TwoDimensionalIntegral