QDP++

Classes

class  QDP::OScalar< T >
 Outer grid Scalar class *‍/. More...
struct  QDP::UnaryReturn< OScalar< T >, FnGetSite >
 dest [some type] = source [some type] More...

Functions

template<class T>
std::istream & QDP::operator>> (std::istream &s, OScalar< T > &d)
 Ascii input.
template<class T>
std::ostream & QDP::operator<< (std::ostream &s, const OScalar< T > &d)
 Ascii output.
template<class RHS, class T1>
std::ostream & QDP::operator<< (std::ostream &s, const QDPExpr< RHS, OScalar< T1 > > &l)
 Text output.
template<class T>
TextReaderQDP::operator>> (TextReader &txt, OScalar< T > &d)
 Text input.
template<class T>
StandardInputStreamQDP::operator>> (StandardInputStream &is, OScalar< T > &d)
 Text input.
template<class T>
TextWriterQDP::operator<< (TextWriter &txt, const OScalar< T > &d)
 Text output.
template<class T>
StandardOutputStreamQDP::operator<< (StandardOutputStream &s, const OScalar< T > &d)
 Text output.
template<class RHS, class T1>
StandardOutputStreamQDP::operator<< (StandardOutputStream &s, const QDPExpr< RHS, OScalar< T1 > > &l)
 Text output.
template<class T>
WordType< OScalar< T > >::Type_t QDP::toWordType (const OScalar< T > &s)
 QDP Wordtype to primitive wordtype.
template<class T>
UnaryReturn< OScalar< T >, FnGetSite >::Type_t QDP::getSite (const OScalar< T > &s1, int innersite)
template<class T>
void QDP::zero_rep (OScalar< T > &dest)
 dest = 0
template<class T1, class T2>
void QDP::copymask (OScalar< T2 > &dest, const OScalar< T1 > &mask, const OScalar< T2 > &s1)
 dest = (mask) ? s1 : dest
template<class T, class T1>
void QDP::cast_rep (T &d, const OScalar< T1 > &s1)
 dest [some type] = source [some type]
template<class T, class T1>
void QDP::recast_rep (OScalar< T > &d, const OScalar< T1 > &s1)
 dest [some type] = source [some type]
template<class T>
void QDP::random (OScalar< T > &d)
 dest = random
template<class T>
void QDP::gaussian (OSubScalar< T > &d)
 dest = gaussian

Detailed Description

Outer grid scalar means sites are not the slowest varying index. There can still be an Inner grid.

Function Documentation

◆ cast_rep()

template<class T, class T1>
void QDP::cast_rep ( T & d,
const OScalar< T1 > & s1 )

dest [some type] = source [some type]

Definition at line 1439 of file qdp_outer.h.

References cast_rep(), and QDP::OScalar< T >::elem().

◆ copymask()

template<class T1, class T2>
void QDP::copymask ( OScalar< T2 > & dest,
const OScalar< T1 > & mask,
const OScalar< T2 > & s1 )

dest = (mask) ? s1 : dest

Definition at line 1432 of file qdp_outer.h.

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

◆ gaussian()

template<class T>
void QDP::gaussian ( OSubScalar< T > & d)

dest = gaussian

Definition at line 1462 of file qdp_outer.h.

References QDP::OScalar< T >::elem(), fill_gaussian(), random(), and QDP::OSubScalar< T >::subset().

Referenced by gaussian(), gaussian(), gaussian(), and gaussian().

◆ getSite()

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

Definition at line 1414 of file qdp_outer.h.

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

◆ operator<<() [1/5]

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

Text output.

Definition at line 190 of file qdp_outer.h.

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

◆ operator<<() [2/5]

template<class RHS, class T1>
StandardOutputStream & QDP::operator<< ( StandardOutputStream & s,
const QDPExpr< RHS, OScalar< T1 > > & l )

Text output.

Definition at line 197 of file qdp_outer.h.

◆ operator<<() [3/5]

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

Ascii output.

Treat all ostreams here like all nodes can write. To use specialized ones that can broadcast, use TextReader

Definition at line 153 of file qdp_outer.h.

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

◆ operator<<() [4/5]

template<class RHS, class T1>
std::ostream & QDP::operator<< ( std::ostream & s,
const QDPExpr< RHS, OScalar< T1 > > & l )

Text output.

Definition at line 160 of file qdp_outer.h.

◆ operator<<() [5/5]

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

Text output.

Definition at line 183 of file qdp_outer.h.

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

◆ operator>>() [1/3]

template<class T>
StandardInputStream & QDP::operator>> ( StandardInputStream & is,
OScalar< T > & d )

Text input.

Definition at line 175 of file qdp_outer.h.

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

◆ operator>>() [2/3]

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

Ascii input.

Treat all istreams here like all nodes can read. To use specialized ones that can broadcast, use TextReader

Definition at line 143 of file qdp_outer.h.

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

◆ operator>>() [3/3]

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

Text input.

Definition at line 168 of file qdp_outer.h.

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

◆ random()

template<class T>
void QDP::random ( OScalar< T > & d)

dest = random

Implementation is in the specific files

This implementation is correct for no inner grid

Definition at line 504 of file qdp_parscalar_specific.h.

References QDP::OScalar< T >::elem(), fill_random(), QDP::RNG::ran_mult, and QDP::RNG::ran_seed.

Referenced by gaussian(), gaussian(), gaussian(), random(), random(), random(), and random().

◆ recast_rep()

template<class T, class T1>
void QDP::recast_rep ( OScalar< T > & d,
const OScalar< T1 > & s1 )

dest [some type] = source [some type]

Definition at line 1446 of file qdp_outer.h.

References cast_rep(), and QDP::OScalar< T >::elem().

◆ toWordType()

template<class T>
WordType< OScalar< T > >::Type_t QDP::toWordType ( const OScalar< T > & s)
inline

QDP Wordtype to primitive wordtype.

Definition at line 1400 of file qdp_outer.h.

References QDP::OScalar< T >::elem(), and toWordType().

◆ zero_rep()

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

dest = 0

Definition at line 1425 of file qdp_outer.h.

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