CHROMA
Classes | Namespaces | Functions
spin_rep.h File Reference

Sparse matrix representation of spin matrices. More...

#include "chromabase.h"

Go to the source code of this file.

Classes

struct  Chroma::MatrixSpinRep_t
 The sparse representation of a spin matrix. More...
 
struct  Chroma::Rank3SpinRep_t
 The sparse representation of a spin rank-3 tensor. More...
 

Namespaces

 Chroma
 Asqtad Staggered-Dirac operator.
 

Functions

void Chroma::read (XMLReader &xml, const std::string &path, MatrixSpinRep_t &param)
 MatrixSpinRep reader. More...
 
void Chroma::write (XMLWriter &xml, const std::string &path, const MatrixSpinRep_t &param)
 MatrixSpinRep writer. More...
 
void Chroma::read (BinaryReader &bin, MatrixSpinRep_t &param)
 MatrixSpinRep reader. More...
 
void Chroma::write (BinaryWriter &bin, const MatrixSpinRep_t &param)
 MatrixSpinRep writer. More...
 
SpinMatrix Chroma::constructSpinDR (int gamma)
 Construct a spin matrix in the DR rep. More...
 
SpinMatrix Chroma::constructSpinDP (int gamma)
 Construct a spin matrix in the DP rep. More...
 
std::vector< MatrixSpinRep_t > Chroma::convertTwoQuarkSpinDR (int gamma)
 Convert a DR gamma matrix indexed by gamma into a sparse spin representation. More...
 
std::vector< MatrixSpinRep_t > Chroma::convertTwoQuarkSpinDP (int gamma)
 Convert a DP gamma matrix indexed by gamma into a sparse spin representation. More...
 
std::vector< MatrixSpinRep_t > Chroma::convertTwoQuarkSpin (const SpinMatrix &in)
 Convert a generic spin matrix into a sparse spin representation. More...
 
MatrixSpinRep_t Chroma::foldSourceDP (const MatrixSpinRep_t &spin, bool src)
 Fold in gamma_4 for source ops. More...
 
std::vector< MatrixSpinRep_t > Chroma::foldSourceDP (const std::vector< MatrixSpinRep_t > &spin, bool src)
 Fold in gamma_4 for source ops. More...
 
void Chroma::read (XMLReader &xml, const std::string &path, Rank3SpinRep_t &param)
 Rank3SpinRep reader. More...
 
void Chroma::write (XMLWriter &xml, const std::string &path, const Rank3SpinRep_t &param)
 Rank3SpinRep writer. More...
 
void Chroma::read (BinaryReader &bin, Rank3SpinRep_t &param)
 Rank3SpinRep reader. More...
 
void Chroma::write (BinaryWriter &bin, const Rank3SpinRep_t &param)
 Rank3SpinRep writer. More...
 
std::vector< Rank3SpinRep_t > Chroma::convertThreeQuarkSpin (const Array3dO< Complex > &in)
 Convert a generic spin tensor into a sparse spin representation. More...
 
Rank3SpinRep_t Chroma::foldSourceDP (const Rank3SpinRep_t &spin, bool src)
 Fold in gamma_4 for source ops. More...
 
std::vector< Rank3SpinRep_t > Chroma::foldSourceDP (const std::vector< Rank3SpinRep_t > &spin, bool src)
 Fold in gamma_4 for source ops. More...
 

Detailed Description

Sparse matrix representation of spin matrices.

Definition in file spin_rep.h.