1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Add a typedef + broaden interface of CMat

This commit is contained in:
Daniel Richtmann 2020-06-11 13:16:00 +02:00
parent 9877ed9bf8
commit 1292d59563
No known key found for this signature in database
GPG Key ID: B33C490AF0772057

View File

@ -268,6 +268,21 @@ public:
typedef iMatrix<CComplex,nbasis > Cobj;
typedef Lattice< CComplex > CoarseScalar; // used for inner products on fine field
typedef Lattice<Fobj > FineField;
typedef CoarseVector FermionField;
// enrich interface
void Meooe(CoarseVector const& in, CoarseVector& out) { assert(0); }
void MeooeDag(CoarseVector const& in, CoarseVector& out) { assert(0); }
void Mooee(CoarseVector const& in, CoarseVector& out) { assert(0); }
void MooeeDag(CoarseVector const& in, CoarseVector& out) { assert(0); }
void MooeeInv(CoarseVector const& in, CoarseVector& out) { assert(0); }
void MooeeInvDag(CoarseVector const& in, CoarseVector& out) { assert(0); }
void Dminus(CoarseVector const& in, CoarseVector& out) { out = in; }
void DminusDag(CoarseVector const& in, CoarseVector& out) { out = in; }
void ImportPhysicalFermionSource(CoarseVector const& input, CoarseVector& imported) { imported = input; }
void ImportUnphysicalFermion(CoarseVector const& input, CoarseVector& imported) { imported = input; }
void ExportPhysicalFermionSolution(CoarseVector const& solution, CoarseVector& exported) { exported = solution; };
void ExportPhysicalFermionSource(CoarseVector const& solution, CoarseVector& exported) { exported = solution; };
////////////////////
// Data members