QDP++

Classes

class  QDP::PSeed< T >
 Primitive Seed class. More...
struct  QDP::BinaryReturn< PSeed< T1 >, PSeed< T2 >, OpMultiply >
 PSeed<T> = PSeed<T> * PSeed<T>. More...
struct  QDP::BinaryReturn< PSeed< T1 >, PSeed< T2 >, OpBitwiseOr >
struct  QDP::BinaryReturn< PSeed< T1 >, PScalar< T2 >, OpBitwiseOr >
struct  QDP::BinaryReturn< PSeed< T1 >, PScalar< T2 >, OpLeftShift >
struct  QDP::UnaryReturn< PSeed< T >, FnSeedToFloat >
 dest [float type] = source [seed type] More...
struct  QDP::UnaryReturn< PSeed< T >, FnGetSite >
 dest [some type] = source [some type] More...

Functions

template<class T>
std::istream & QDP::operator>> (std::istream &s, PSeed< T > &d)
 Text input.
template<class T>
StandardInputStreamQDP::operator>> (StandardInputStream &s, PSeed< T > &d)
 Text input.
template<class T>
std::ostream & QDP::operator<< (std::ostream &s, const PSeed< T > &d)
 Text output.
template<class T>
StandardOutputStreamQDP::operator<< (StandardOutputStream &s, const PSeed< T > &d)
 Text output.
template<class T>
TextReaderQDP::operator>> (TextReader &txt, PSeed< T > &d)
 Text input.
template<class T>
TextWriterQDP::operator<< (TextWriter &txt, const PSeed< T > &d)
 Text output.
template<class T1, class T2>
BinaryReturn< PSeed< T1 >, PSeed< T2 >, OpMultiply >::Type_t QDP::operator* (const PSeed< T1 > &s1, const PSeed< T2 > &s2)
template<class T1, class T2>
BinaryReturn< PSeed< T1 >, PSeed< T2 >, OpBitwiseOr >::Type_t QDP::operator| (const PSeed< T1 > &l, const PSeed< T2 > &r)
template<class T1, class T2>
BinaryReturn< PSeed< T1 >, PScalar< T2 >, OpBitwiseOr >::Type_t QDP::operator| (const PSeed< T1 > &l, const PScalar< T2 > &r)
template<class T1, class T2>
BinaryReturn< PSeed< T1 >, PScalar< T2 >, OpLeftShift >::Type_t QDP::operator<< (const PSeed< T1 > &s1, const PScalar< T2 > &s2)
template<class T>
UnaryReturn< PSeed< T >, FnSeedToFloat >::Type_t QDP::seedToFloat (const PSeed< T > &s1)
template<class T>
UnaryReturn< PSeed< T >, FnGetSite >::Type_t QDP::getSite (const PSeed< T > &s1, int innersite)
template<class T>
void QDP::zero_rep (PSeed< T > &dest)
 dest = 0
template<class T, class T1>
void QDP::copymask (PSeed< T > &d, const PScalar< T1 > &mask, const PSeed< T > &s1)
 dest = (mask) ? s1 : dest

Detailed Description

Primitive type for supporting random numbers. This is really a big integer class.

Function Documentation

◆ copymask()

template<class T, class T1>
void QDP::copymask ( PSeed< T > & d,
const PScalar< T1 > & mask,
const PSeed< T > & s1 )
inline

dest = (mask) ? s1 : dest

Definition at line 541 of file qdp_primseed.h.

References copymask(), QDP::PScalar< T >::elem(), and QDP::PSeed< T >::elem().

◆ getSite()

template<class T>
UnaryReturn< PSeed< T >, FnGetSite >::Type_t QDP::getSite ( const PSeed< T > & s1,
int innersite )
inline

Definition at line 516 of file qdp_primseed.h.

References QDP::PSeed< T >::elem(), and getSite().

◆ operator*()

template<class T1, class T2>
BinaryReturn< PSeed< T1 >, PSeed< T2 >, OpMultiply >::Type_t QDP::operator* ( const PSeed< T1 > & s1,
const PSeed< T2 > & s2 )
inline

Definition at line 339 of file qdp_primseed.h.

References QDP::PSeed< T >::elem().

◆ operator<<() [1/4]

template<class T1, class T2>
BinaryReturn< PSeed< T1 >, PScalar< T2 >, OpLeftShift >::Type_t QDP::operator<< ( const PSeed< T1 > & s1,
const PScalar< T2 > & s2 )
inline

Definition at line 439 of file qdp_primseed.h.

References QDP::PScalar< T >::elem(), and QDP::PSeed< T >::elem().

◆ operator<<() [2/4]

template<class T>
StandardOutputStream & QDP::operator<< ( StandardOutputStream & s,
const PSeed< T > & d )
inline

Text output.

Definition at line 141 of file qdp_primseed.h.

References QDP::PSeed< T >::elem().

◆ operator<<() [3/4]

template<class T>
std::ostream & QDP::operator<< ( std::ostream & s,
const PSeed< T > & d )
inline

Text output.

Definition at line 132 of file qdp_primseed.h.

References QDP::PSeed< T >::elem().

◆ operator<<() [4/4]

template<class T>
TextWriter & QDP::operator<< ( TextWriter & txt,
const PSeed< T > & d )
inline

Text output.

Definition at line 161 of file qdp_primseed.h.

References QDP::PSeed< T >::elem().

◆ operator>>() [1/3]

template<class T>
StandardInputStream & QDP::operator>> ( StandardInputStream & s,
PSeed< T > & d )
inline

Text input.

Definition at line 121 of file qdp_primseed.h.

References QDP::PSeed< T >::elem().

◆ operator>>() [2/3]

template<class T>
std::istream & QDP::operator>> ( std::istream & s,
PSeed< T > & d )
inline

Text input.

Definition at line 110 of file qdp_primseed.h.

References QDP::PSeed< T >::elem().

◆ operator>>() [3/3]

template<class T>
TextReader & QDP::operator>> ( TextReader & txt,
PSeed< T > & d )
inline

Text input.

Definition at line 150 of file qdp_primseed.h.

References QDP::PSeed< T >::elem().

◆ operator|() [1/2]

template<class T1, class T2>
BinaryReturn< PSeed< T1 >, PScalar< T2 >, OpBitwiseOr >::Type_t QDP::operator| ( const PSeed< T1 > & l,
const PScalar< T2 > & r )
inline

Definition at line 417 of file qdp_primseed.h.

◆ operator|() [2/2]

template<class T1, class T2>
BinaryReturn< PSeed< T1 >, PSeed< T2 >, OpBitwiseOr >::Type_t QDP::operator| ( const PSeed< T1 > & l,
const PSeed< T2 > & r )
inline

Definition at line 395 of file qdp_primseed.h.

References QDP::PSeed< T >::elem().

◆ seedToFloat()

template<class T>
UnaryReturn< PSeed< T >, FnSeedToFloat >::Type_t QDP::seedToFloat ( const PSeed< T > & s1)
inline

Definition at line 475 of file qdp_primseed.h.

References QDP::PSeed< T >::elem().

◆ zero_rep()

template<class T>
void QDP::zero_rep ( PSeed< T > & dest)
inline

dest = 0

Definition at line 531 of file qdp_primseed.h.

References QDP::PSeed< T >::elem(), and zero_rep().