QDP++

Functions

void QDP::zero_rep (int &dest)
 dest = 0
void QDP::zero_rep (float &dest)
 dest = 0
void QDP::zero_rep (double &dest)
 dest = 0
void QDP::copymask (int &d, bool mask, int s1)
 No bool(dest) = 0.
void QDP::copymask (float &d, bool mask, float s1)
 d = (mask) ? s1 : d;
void QDP::copymask (double &d, bool mask, double s1)
 d = (mask) ? s1 : d;
void QDP::cast_rep (float &d, int s1)
 dest [float type] = source [int type]
void QDP::cast_rep (float &d, float s1)
 dest [float type] = source [float type]
void QDP::cast_rep (float &d, double s1)
 dest [float type] = source [double type]
void QDP::cast_rep (double &d, int s1)
 dest [float type] = source [int type]
void QDP::cast_rep (double &d, float s1)
 dest [double type] = source [float type]
void QDP::cast_rep (double &d, double s1)
 dest [double type] = source [double type]
void QDP::recast_rep (float &d, int s1)
 dest [float type] = source [int type]
void QDP::recast_rep (float &d, float s1)
 dest [float type] = source [float type]
void QDP::recast_rep (float &d, double s1)
 dest [float type] = source [double type]
void QDP::recast_rep (double &d, int s1)
 dest [float type] = source [int type]
void QDP::recast_rep (double &d, float s1)
 dest [double type] = source [float type]
void QDP::recast_rep (double &d, double s1)
 dest [double type] = source [double type]
float QDP::conj (float l)
double QDP::conj (double l)
int QDP::conj (int l)
float QDP::transpose (float l)
double QDP::transpose (double l)
int QDP::transpose (int l)
float QDP::trace (float s1)
double QDP::trace (double s1)
int QDP::trace (int s1)
float QDP::getSite (float s1, int innersite)
double QDP::getSite (double s1, int innersite)
int QDP::getSite (int s1, int innersite)
bool QDP::getSite (bool s1, int innersite)
int QDP::toInt (int s1)
float QDP::toFloat (float s1)
double QDP::toDouble (double s1)
bool QDP::toBool (bool s1)
int QDP::toWordType (int s1)
float QDP::toWordType (float s1)
double QDP::toWordType (double s1)
bool QDP::toWordType (bool s1)
int QDP::where (bool a, int b, int c)
float QDP::where (bool a, float b, float c)
double QDP::where (bool a, double b, double c)
int QDP::sum (int s1)
int QDP::localNorm2 (int s1)
int QDP::localInnerProduct (int s1, int s2)
int QDP::localColorInnerProduct (int s1, int s2)
unsigned int QDP::sum (unsigned int s1)
unsigned int QDP::localNorm2 (unsigned int s1)
unsigned int QDP::localInnerProduct (unsigned int s1, unsigned int s2)
unsigned int QDP::localColorInnerProduct (unsigned int s1, unsigned int s2)
double QDP::sum (float s1)
double QDP::localNorm2 (float s1)
double QDP::localInnerProduct (float s1, float s2)
double QDP::localColorInnerProduct (float s1, float s2)
double QDP::sum (double s1)
double QDP::localNorm2 (double s1)
double QDP::localInnerProduct (float s1, double s2)
double QDP::localColorInnerProduct (float s1, double s2)
double QDP::localInnerProduct (double s1, float s2)
double QDP::localColorInnerProduct (double s1, float s2)
double QDP::localInnerProduct (double s1, double s2)
double QDP::localColorInnerProduct (double s1, double s2)

Detailed Description

Fiber operations on builtin types. These operations are in support of QDP. Namely, the builtin types are the lowest level (most deeply nested) types within the QDP type composition

Function Documentation

◆ cast_rep() [1/6]

void QDP::cast_rep ( double & d,
double s1 )
inline

dest [double type] = source [double type]

Definition at line 145 of file qdp_simpleword.h.

◆ cast_rep() [2/6]

void QDP::cast_rep ( double & d,
float s1 )
inline

dest [double type] = source [float type]

Definition at line 138 of file qdp_simpleword.h.

◆ cast_rep() [3/6]

void QDP::cast_rep ( double & d,
int s1 )
inline

dest [float type] = source [int type]

Definition at line 131 of file qdp_simpleword.h.

◆ cast_rep() [4/6]

void QDP::cast_rep ( float & d,
double s1 )
inline

dest [float type] = source [double type]

Definition at line 123 of file qdp_simpleword.h.

◆ cast_rep() [5/6]

void QDP::cast_rep ( float & d,
float s1 )
inline

dest [float type] = source [float type]

Definition at line 116 of file qdp_simpleword.h.

◆ cast_rep() [6/6]

void QDP::cast_rep ( float & d,
int s1 )
inline

dest [float type] = source [int type]

Definition at line 109 of file qdp_simpleword.h.

◆ conj() [1/3]

double QDP::conj ( double l)
inline

Definition at line 211 of file qdp_simpleword.h.

◆ conj() [2/3]

float QDP::conj ( float l)
inline

Definition at line 204 of file qdp_simpleword.h.

◆ conj() [3/3]

int QDP::conj ( int l)
inline

Definition at line 218 of file qdp_simpleword.h.

◆ copymask() [1/3]

void QDP::copymask ( double & d,
bool mask,
double s1 )
inline

d = (mask) ? s1 : d;

Definition at line 99 of file qdp_simpleword.h.

◆ copymask() [2/3]

void QDP::copymask ( float & d,
bool mask,
float s1 )
inline

d = (mask) ? s1 : d;

Definition at line 91 of file qdp_simpleword.h.

◆ copymask() [3/3]

void QDP::copymask ( int & d,
bool mask,
int s1 )
inline

No bool(dest) = 0.

d = (mask) ? s1 : d;

Definition at line 83 of file qdp_simpleword.h.

◆ getSite() [1/4]

bool QDP::getSite ( bool s1,
int innersite )
inline

Definition at line 276 of file qdp_simpleword.h.

◆ getSite() [2/4]

double QDP::getSite ( double s1,
int innersite )
inline

Definition at line 274 of file qdp_simpleword.h.

◆ getSite() [3/4]

float QDP::getSite ( float s1,
int innersite )
inline

Definition at line 273 of file qdp_simpleword.h.

◆ getSite() [4/4]

int QDP::getSite ( int s1,
int innersite )
inline

Definition at line 275 of file qdp_simpleword.h.

◆ localColorInnerProduct() [1/6]

double QDP::localColorInnerProduct ( double s1,
double s2 )
inline

Definition at line 474 of file qdp_simpleword.h.

◆ localColorInnerProduct() [2/6]

double QDP::localColorInnerProduct ( double s1,
float s2 )
inline

Definition at line 462 of file qdp_simpleword.h.

◆ localColorInnerProduct() [3/6]

double QDP::localColorInnerProduct ( float s1,
double s2 )
inline

Definition at line 450 of file qdp_simpleword.h.

◆ localColorInnerProduct() [4/6]

double QDP::localColorInnerProduct ( float s1,
float s2 )
inline

Definition at line 426 of file qdp_simpleword.h.

◆ localColorInnerProduct() [5/6]

int QDP::localColorInnerProduct ( int s1,
int s2 )
inline

Definition at line 380 of file qdp_simpleword.h.

◆ localColorInnerProduct() [6/6]

unsigned int QDP::localColorInnerProduct ( unsigned int s1,
unsigned int s2 )
inline

Definition at line 403 of file qdp_simpleword.h.

◆ localInnerProduct() [1/6]

double QDP::localInnerProduct ( double s1,
double s2 )
inline

Definition at line 468 of file qdp_simpleword.h.

◆ localInnerProduct() [2/6]

double QDP::localInnerProduct ( double s1,
float s2 )
inline

Definition at line 456 of file qdp_simpleword.h.

◆ localInnerProduct() [3/6]

double QDP::localInnerProduct ( float s1,
double s2 )
inline

Definition at line 444 of file qdp_simpleword.h.

◆ localInnerProduct() [4/6]

double QDP::localInnerProduct ( float s1,
float s2 )
inline

Definition at line 421 of file qdp_simpleword.h.

◆ localInnerProduct() [5/6]

int QDP::localInnerProduct ( int s1,
int s2 )
inline

Definition at line 374 of file qdp_simpleword.h.

◆ localInnerProduct() [6/6]

unsigned int QDP::localInnerProduct ( unsigned int s1,
unsigned int s2 )
inline

Definition at line 398 of file qdp_simpleword.h.

◆ localNorm2() [1/4]

double QDP::localNorm2 ( double s1)
inline

Definition at line 438 of file qdp_simpleword.h.

◆ localNorm2() [2/4]

double QDP::localNorm2 ( float s1)
inline

Definition at line 415 of file qdp_simpleword.h.

◆ localNorm2() [3/4]

int QDP::localNorm2 ( int s1)
inline

Definition at line 368 of file qdp_simpleword.h.

◆ localNorm2() [4/4]

unsigned int QDP::localNorm2 ( unsigned int s1)
inline

Definition at line 392 of file qdp_simpleword.h.

◆ recast_rep() [1/6]

void QDP::recast_rep ( double & d,
double s1 )
inline

dest [double type] = source [double type]

Definition at line 190 of file qdp_simpleword.h.

References cast_rep().

◆ recast_rep() [2/6]

void QDP::recast_rep ( double & d,
float s1 )
inline

dest [double type] = source [float type]

Definition at line 183 of file qdp_simpleword.h.

References cast_rep().

◆ recast_rep() [3/6]

void QDP::recast_rep ( double & d,
int s1 )
inline

dest [float type] = source [int type]

Definition at line 176 of file qdp_simpleword.h.

References cast_rep().

◆ recast_rep() [4/6]

void QDP::recast_rep ( float & d,
double s1 )
inline

dest [float type] = source [double type]

Definition at line 168 of file qdp_simpleword.h.

References cast_rep().

◆ recast_rep() [5/6]

void QDP::recast_rep ( float & d,
float s1 )
inline

dest [float type] = source [float type]

Definition at line 161 of file qdp_simpleword.h.

References cast_rep().

◆ recast_rep() [6/6]

void QDP::recast_rep ( float & d,
int s1 )
inline

dest [float type] = source [int type]

Definition at line 154 of file qdp_simpleword.h.

References cast_rep().

◆ sum() [1/4]

double QDP::sum ( double s1)
inline

Definition at line 432 of file qdp_simpleword.h.

◆ sum() [2/4]

double QDP::sum ( float s1)
inline

Definition at line 409 of file qdp_simpleword.h.

◆ sum() [3/4]

int QDP::sum ( int s1)
inline

Definition at line 362 of file qdp_simpleword.h.

◆ sum() [4/4]

unsigned int QDP::sum ( unsigned int s1)
inline

Definition at line 386 of file qdp_simpleword.h.

◆ toBool()

bool QDP::toBool ( bool s1)
inline

Definition at line 303 of file qdp_simpleword.h.

◆ toDouble()

double QDP::toDouble ( double s1)
inline

Definition at line 296 of file qdp_simpleword.h.

◆ toFloat()

float QDP::toFloat ( float s1)
inline

Definition at line 289 of file qdp_simpleword.h.

◆ toInt()

int QDP::toInt ( int s1)
inline

Definition at line 282 of file qdp_simpleword.h.

◆ toWordType() [1/4]

bool QDP::toWordType ( bool s1)
inline

Definition at line 332 of file qdp_simpleword.h.

◆ toWordType() [2/4]

double QDP::toWordType ( double s1)
inline

Definition at line 325 of file qdp_simpleword.h.

◆ toWordType() [3/4]

float QDP::toWordType ( float s1)
inline

Definition at line 318 of file qdp_simpleword.h.

◆ toWordType() [4/4]

int QDP::toWordType ( int s1)
inline

Definition at line 311 of file qdp_simpleword.h.

◆ trace() [1/3]

double QDP::trace ( double s1)
inline

Definition at line 258 of file qdp_simpleword.h.

◆ trace() [2/3]

float QDP::trace ( float s1)
inline

Definition at line 250 of file qdp_simpleword.h.

◆ trace() [3/3]

int QDP::trace ( int s1)
inline

Definition at line 266 of file qdp_simpleword.h.

◆ transpose() [1/3]

double QDP::transpose ( double l)
inline

Definition at line 233 of file qdp_simpleword.h.

◆ transpose() [2/3]

float QDP::transpose ( float l)
inline

Definition at line 226 of file qdp_simpleword.h.

◆ transpose() [3/3]

int QDP::transpose ( int l)
inline

Definition at line 240 of file qdp_simpleword.h.

◆ where() [1/3]

double QDP::where ( bool a,
double b,
double c )
inline

Definition at line 353 of file qdp_simpleword.h.

◆ where() [2/3]

float QDP::where ( bool a,
float b,
float c )
inline

Definition at line 347 of file qdp_simpleword.h.

◆ where() [3/3]

int QDP::where ( bool a,
int b,
int c )
inline

Definition at line 341 of file qdp_simpleword.h.

◆ zero_rep() [1/3]

void QDP::zero_rep ( double & dest)
inline

dest = 0

Definition at line 73 of file qdp_simpleword.h.

◆ zero_rep() [2/3]

void QDP::zero_rep ( float & dest)
inline

dest = 0

Definition at line 66 of file qdp_simpleword.h.

◆ zero_rep() [3/3]

void QDP::zero_rep ( int & dest)
inline

dest = 0

Definition at line 59 of file qdp_simpleword.h.