|
GLAC
1.0
|
A method for holding a lattice of type T. More...
#include <lattice.h>
Public Member Functions | |
| Lattice () | |
| Lattice (std::vector< unsigned int >latticeDimensions) | |
| ~Lattice () | |
| Lattice (const Lattice< T > &other) | |
| Lattice copy constructor. More... | |
| Lattice (Lattice< T > &&other) noexcept | |
| Lattice move constructor. More... | |
| Lattice & | operator= (const Lattice &other) |
| operator = Copy assignement operator More... | |
| Lattice & | operator= (Lattice< T > &&other) noexcept |
| operator = Move assignement operator More... | |
| void | allocate (std::vector< unsigned int > dim) |
| allocate method for allocating memory. More... | |
| T & | operator[] (unsigned long i) |
| operator [] access operator that has no boundary checking. More... | |
| T & | operator() (unsigned long i) |
| operator () access operator that has boundary checking. More... | |
| Lattice< T > & | operator+= (Lattice< T > &B) |
| Lattice< T > & | operator+= (Lattice< T > &&B) |
| Lattice< T > & | operator-= (Lattice< T > &B) |
| Lattice< T > & | operator-= (Lattice< T > &&B) |
| Lattice< T > & | operator *= (Lattice< T > &B) |
| Lattice< T > & | operator *= (Lattice< T > &&B) |
| Lattice< T > & | operator *= (double B) |
| Lattice< T > & | operator/= (double B) |
| Lattice< T > & | operator+= (complex B) |
| Lattice< T > & | operator-= (complex B) |
| Lattice< T > & | operator *= (complex B) |
| Lattice< T > & | operator/= (complex B) |
| void | identity () |
| identity method for setting the SU3 matrices of the lattice to identity. More... | |
| void | zeros () |
| zeros sets all of the SU3 elements in the lattice to zero. More... | |
| Lattice< T > | copy (Lattice< T > B) |
| copy method for copying content of another lattice B onto itself. More... | |
Data Fields | |
| std::vector< T > | m_sites |
| std::vector< unsigned int > | m_dim |
| unsigned long | m_latticeSize |
A method for holding a lattice of type T.
The lattice class is implemented such that is uses move semantics, i.e. rule of 5.
Lattice copy constructor.
| other |
Lattice move constructor.
| other |
|
inline |
allocate method for allocating memory.
| dim |
copy method for copying content of another lattice B onto itself.
| B |
|
inline |
identity method for setting the SU3 matrices of the lattice to identity.
|
inline |
operator () access operator that has boundary checking.
| i |
operator = Copy assignement operator
| other |
operator = Move assignement operator
| other |
|
inline |
operator [] access operator that has no boundary checking.
| i |
|
inline |
zeros sets all of the SU3 elements in the lattice to zero.
| std::vector<unsigned int> Lattice< T >::m_dim |
| unsigned long Lattice< T >::m_latticeSize |
| std::vector<T> Lattice< T >::m_sites |
1.8.15