|
QDP++
|
Set - collection of subsets controlling which sites are involved in an operation. More...
#include <qdp_subset.h>
Public Member Functions | |
| Set () | |
| There can be an empty constructor. | |
| Set (const SetFunc &fn) | |
| Constructor from a function object. | |
| void | make (const SetFunc &fn) |
| Constructor from a function object. | |
| const Subset & | operator[] (int subset_index) const |
| Index operator selects a subset from a set. | |
| int | numSubsets () const |
| Return number of subsets. | |
| virtual | ~Set () |
| Destructor for a set. | |
| Set & | operator= (const Set &s) |
| The = operator. | |
| const multi1d< int > & | latticeColoring () const |
| The coloring of the lattice sites. | |
Protected Attributes | |
| multi1d< Subset > | sub |
| A set is composed of an array of subsets. | |
| multi1d< int > | lat_color |
| Index or color array of lattice. | |
| multi1d< multi1d< int > > | sitetables |
| Array of sitetable arrays. | |
Set - collection of subsets controlling which sites are involved in an operation.
Definition at line 95 of file qdp_subset.h.
|
inline |
There can be an empty constructor.
Definition at line 99 of file qdp_subset.h.
Referenced by operator=().
|
inline |
|
inlinevirtual |
Destructor for a set.
Definition at line 114 of file qdp_subset.h.
|
inline |
The coloring of the lattice sites.
Definition at line 131 of file qdp_subset.h.
References lat_color.
Referenced by QDP::readOLattice(), QDP::sumMulti(), QDP::sumMulti(), and QDP::writeOLattice().
| void QDP::Set::make | ( | const SetFunc & | fn | ) |
Constructor from a function object.
Definition at line 56 of file qdp_scalarsite_specific.cc.
References lat_color, QDP::Layout::linearSiteIndex(), QDP::Layout::nodeNumber(), QDP::SetFunc::numSubsets(), QDP::QDP_error_exit(), QDP::QDP_info(), QDP::multi1d< T >::resize(), QDP::Layout::siteCoords(), QDP::Layout::sitesOnNode(), sitetables, QDP::multi1d< T >::size(), and sub.
Referenced by Set().
|
inline |
Return number of subsets.
Definition at line 111 of file qdp_subset.h.
References sub.
Referenced by QDP::sumMulti(), QDP::sumMulti(), QDP::sumMulti(), and QDP::sumMulti().
The = operator.
Definition at line 160 of file qdp_subset.cc.
References lat_color, Set(), sitetables, and sub.
|
inline |
Index operator selects a subset from a set.
Definition at line 108 of file qdp_subset.h.
References sub.
|
protected |
Index or color array of lattice.
Definition at line 124 of file qdp_subset.h.
Referenced by latticeColoring(), make(), and operator=().
Array of sitetable arrays.
Definition at line 127 of file qdp_subset.h.
Referenced by make(), and operator=().
A set is composed of an array of subsets.
Definition at line 121 of file qdp_subset.h.
Referenced by make(), numSubsets(), operator=(), and operator[]().