QDP++
QDP::Set Class Reference

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 Subsetoperator[] (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.
Setoperator= (const Set &s)
 The = operator.
const multi1d< int > & latticeColoring () const
 The coloring of the lattice sites.

Protected Attributes

multi1d< Subsetsub
 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.

Detailed Description

Set - collection of subsets controlling which sites are involved in an operation.

Definition at line 95 of file qdp_subset.h.

Constructor & Destructor Documentation

◆ Set() [1/2]

QDP::Set::Set ( )
inline

There can be an empty constructor.

Definition at line 99 of file qdp_subset.h.

Referenced by operator=().

◆ Set() [2/2]

QDP::Set::Set ( const SetFunc & fn)
inline

Constructor from a function object.

Definition at line 102 of file qdp_subset.h.

References make().

◆ ~Set()

virtual QDP::Set::~Set ( )
inlinevirtual

Destructor for a set.

Definition at line 114 of file qdp_subset.h.

Member Function Documentation

◆ latticeColoring()

const multi1d< int > & QDP::Set::latticeColoring ( ) const
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().

◆ make()

◆ numSubsets()

int QDP::Set::numSubsets ( ) const
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().

◆ operator=()

Set & QDP::Set::operator= ( const Set & s)

The = operator.

Definition at line 160 of file qdp_subset.cc.

References lat_color, Set(), sitetables, and sub.

◆ operator[]()

const Subset & QDP::Set::operator[] ( int subset_index) const
inline

Index operator selects a subset from a set.

Definition at line 108 of file qdp_subset.h.

References sub.

Member Data Documentation

◆ lat_color

multi1d<int> QDP::Set::lat_color
protected

Index or color array of lattice.

Definition at line 124 of file qdp_subset.h.

Referenced by latticeColoring(), make(), and operator=().

◆ sitetables

multi1d<multi1d<int> > QDP::Set::sitetables
protected

Array of sitetable arrays.

Definition at line 127 of file qdp_subset.h.

Referenced by make(), and operator=().

◆ sub

multi1d<Subset> QDP::Set::sub
protected

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[]().


The documentation for this class was generated from the following files: