37const Real latticeA[] =
3642const Real latticeB[] =
7247const Real latticeC[] =
10852const Real latticeD[] =
14461 Size ruleLength = 3600;
14462 Z.resize(ruleLength);
14464 QL_REQUIRE( N >= 1024 && N <= std::pow(2.9,20),
14465 "N must be between 2 to 10 and 2 to the 20 for these lattice rules ");
14470 const Real* dumbPointer =
nullptr;
14475 dumbPointer = latticeA;
14478 dumbPointer = latticeB;
14481 dumbPointer = latticeC;
14484 dumbPointer = latticeD;
14488 QL_REQUIRE(dumbPointer !=
nullptr,
"unknown lattice rule requested");
14491 std::copy(dumbPointer, dumbPointer+ruleLength,Z.begin());
static void getRule(type name, std::vector< Real > &Z, Integer N)
Classes and functions for error handling.
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
QL_INTEGER Integer
integer number
std::size_t Size
size of a container