24 #ifndef _GRIDSAMPLING_HPP_ 25 #define _GRIDSAMPLING_HPP_ 34 void deepenGrid(
size_t comp,
const vectori ndivs,
35 vectord& x, vecOfvec& result)
43 for (
size_t i = 0; i<ndivs(comp); ++i)
45 x(comp) =
static_cast<double>(i);
46 deepenGrid(comp+1,ndivs, x, result);
51 void buildGrid(
const vectori& dims, vecOfvec& result)
53 if (result.size()){ result.clear(); }
55 vectord x(dims.size());
56 deepenGrid(0,dims,x,result);
Boost vector and matrix types.
Namespace of the library interface.