QDP++

Primitive Seed class. More...

#include <qdp_primseed.h>

Public Member Functions

 PSeed ()
 ~PSeed ()
template<class T1>
 PSeed (const PScalar< T1 > &rhs)
 construct dest = const
template<class T1>
PSeedassign (const PScalar< T1 > &rhs)
 PSeed = PScalar.
template<class T1>
PSeedoperator= (const PScalar< T1 > &rhs)
 PSeed = PScalar.
template<class T1>
PSeedoperator= (const PSeed< T1 > &rhs)
 PSeed = PSeed.
 PSeed (const PSeed &a)
 Deep copy constructor.
T & elem (int i)
const T & elem (int i) const

Detailed Description

template<class T>
class QDP::PSeed< T >

Primitive Seed class.

Seed primitives exist to facilitate seed multiplication - namely multiplication of a large integer represented as 4 smaller integers

NOTE: the class is still treated as a template since there may be an inner lattice so the type could be represented as an length 4 array of lattice integers

Definition at line 33 of file qdp_primseed.h.

Constructor & Destructor Documentation

◆ PSeed() [1/3]

template<class T>
QDP::PSeed< T >::PSeed ( )
inline

Definition at line 36 of file qdp_primseed.h.

◆ ~PSeed()

template<class T>
QDP::PSeed< T >::~PSeed ( )
inline

Definition at line 37 of file qdp_primseed.h.

◆ PSeed() [2/3]

template<class T>
template<class T1>
QDP::PSeed< T >::PSeed ( const PScalar< T1 > & rhs)
inline

construct dest = const

Definition at line 41 of file qdp_primseed.h.

◆ PSeed() [3/3]

template<class T>
QDP::PSeed< T >::PSeed ( const PSeed< T > & a)
inline

Deep copy constructor.

This is a copy form - legal but not necessarily efficient

Definition at line 91 of file qdp_primseed.h.

Member Function Documentation

◆ assign()

template<class T>
template<class T1>
PSeed & QDP::PSeed< T >::assign ( const PScalar< T1 > & rhs)
inline

◆ elem() [1/2]

◆ elem() [2/2]

template<class T>
const T & QDP::PSeed< T >::elem ( int i) const
inline

Definition at line 100 of file qdp_primseed.h.

◆ operator=() [1/2]

template<class T>
template<class T1>
PSeed & QDP::PSeed< T >::operator= ( const PScalar< T1 > & rhs)
inline

PSeed = PScalar.

Set equal to input scalar (an integer)

Definition at line 68 of file qdp_primseed.h.

◆ operator=() [2/2]

template<class T>
template<class T1>
PSeed & QDP::PSeed< T >::operator= ( const PSeed< T1 > & rhs)
inline

PSeed = PSeed.

Set equal to another PSeed

Definition at line 77 of file qdp_primseed.h.


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