|
MADNESS 0.10.1
|
Denotes lattice summation over range [-N, N]; N=0 is equivalent to including the simulation cell only. More...
#include <kernelrange.h>
Public Member Functions | |
| LatticeRange ()=default | |
| constructs [0,0] | |
| LatticeRange (bool lattice_sum) | |
| LatticeRange (int n) | |
| constructs [-n,n] | |
| int | get_range () const |
| bool | infinite () const |
| operator bool () const | |
| LatticeRange & | set_infinite () |
| LatticeRange & | set_range (int n) |
Private Attributes | |
| int | N = 0 |
| lattice sum over [-N, N]; total # of cells = 2N + 1 | |
Denotes lattice summation over range [-N, N]; N=0 is equivalent to including the simulation cell only.
|
default |
constructs [0,0]
|
inlineexplicit |
constructs [-n,n]
References set_range().
|
inlineexplicit |
| lattice_sum | if true, constructs [-∞,∞], else constructs [0,0] |
References madness::lattice_sum(), and set_infinite().
|
inline |
References N.
|
inline |
References N.
|
inlineexplicit |
References N.
|
inline |
|
inline |
| n | the lattice summation range in each direction |
References MADNESS_ASSERT.
Referenced by LatticeRange().
|
private |
lattice sum over [-N, N]; total # of cells = 2N + 1
Referenced by get_range(), infinite(), operator bool(), and set_infinite().