Definition at line 442 of file Grid.h.
void Init |
( |
double |
start, |
|
|
double |
end, |
|
|
double |
ratio, |
|
|
int |
numPoints |
|
) |
| |
|
inline |
Definition at line 464 of file Grid.h.
References a, qmcplusplus::abs(), aInv, b, bInv, center, Grid::End, EvenHalf, Grid::grid, HalfPoints, qmcplusplus::log(), Grid::NumPoints, Odd, OddOne, Array< T, D, ALLOC >::resize(), sign(), and Grid::Start.
469 center = 0.5 * (start + end);
472 Odd = ((numPoints % 2) == 1);
484 double sign = (i < 0) ? -1.0 : 1.0;
492 a = 0.5 * (end - start) / expm1(
b * (-0.5 +
HalfPoints));
496 double sign = (i < 0) ? -1.0 : 1.0;
MakeReturn< UnaryNode< FnFabs, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t abs(const Vector< T1, C1 > &l)
Array< double, 1 > grid
Contains the grid points.
int NumPoints
Number of points in the grid.
void resize(const std::array< SIZET, D > &dims)
Resize the container.
MakeReturn< UnaryNode< FnLog, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t log(const Vector< T1, C1 > &l)
double Start
First and last grid points.