50 for(
int m=0; m < coordinate.
size(); ++m)
65 if (coordinate.
size() < 3) {
66 QDPIO::cerr <<
"Need at least 3d for 3d checkerboarding" << std::endl;
70 for(
int m=0; m < 3; ++m)
86 int initial_color = 0;
87 for(
int m=
Nd-1; m >= 0; --m)
88 initial_color = (initial_color << 1) + (coordinate[m] & 1);
91 for(
int m=0; m <
Nd; ++m)
92 cb += coordinate[m] >> 1;
95 return initial_color + (cb <<
Nd);
144 startSite = s.startSite;
146 sub_index = s.sub_index;
147 sitetable = s.sitetable;
Function object used for constructing 32 checkerboard. */.
int operator()(const multi1d< int > &coordinate) const
Function object used for constructing the all subset.
int operator()(const multi1d< int > &coordinate) const
Function object used for constructing red-black (2) checkerboard in 3d.
int operator()(const multi1d< int > &coordinate) const
Function object used for constructing red-black (2) checkerboard */.
int operator()(const multi1d< int > &coordinate) const
Set - collection of subsets controlling which sites are involved in an operation.
multi1d< int > lat_color
Index or color array of lattice.
Set & operator=(const Set &s)
The = operator.
multi1d< multi1d< int > > sitetables
Array of sitetable arrays.
multi1d< Subset > sub
A set is composed of an array of subsets.
Set()
There can be an empty constructor.
Subsets - controls how lattices are looped.
Subset()
There can be an empty constructor.
Subset & operator=(const Subset &s)
The = operator.
void make(const Subset &s)
Simple constructor called to produce a Subset from inside a Set.
Container for a multi-dimensional 1D array.
int size() const
Size of array.
UnaryReturn< C, FnSum >::Type_t sum(const QDPType< T, C > &s1)
OScalar = sum(source).
Set rb
Default 2-checkerboard (red/black) set.
Set mcb
Default 2^{Nd+1}-checkerboard set. Useful for pure gauge updating.
Set rb3
Default rb3 subset – Always unordered.
Subset all
Default all subset.
StandardOutputStream cerr
Yet another random number generator.
Set set_all
Default all set.
void initDefaultSets()
Initializer for sets.
void QDP_abort(int status)
Panic button.
Primary include file for QDP.