mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
WilsonMG: Get rid of explicit GridTypeMappers in CoarsenedMatrix
This commit is contained in:
parent
ee5cf6c8c5
commit
edbc0d49d7
@ -94,7 +94,7 @@ namespace Grid {
|
|||||||
class Aggregation {
|
class Aggregation {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef typename GridTypeMapper<CComplex>::vector_type innerType;
|
typedef typename CComplex::vector_type innerType;
|
||||||
typedef iScalar<iScalar<iScalar<innerType > > > siteScalar; // used for inner products on fine field
|
typedef iScalar<iScalar<iScalar<innerType > > > siteScalar; // used for inner products on fine field
|
||||||
typedef iScalar<iVector<iVector<innerType, nbasis >, 1 > > siteVector;
|
typedef iScalar<iVector<iVector<innerType, nbasis >, 1 > > siteVector;
|
||||||
typedef iScalar<iMatrix<iMatrix<innerType, nbasis >, 1 > > siteMatrix;
|
typedef iScalar<iMatrix<iMatrix<innerType, nbasis >, 1 > > siteMatrix;
|
||||||
@ -243,10 +243,10 @@ namespace Grid {
|
|||||||
// Fine Object == (per site) type of fine field
|
// Fine Object == (per site) type of fine field
|
||||||
// nbasis == number of deflation vectors
|
// nbasis == number of deflation vectors
|
||||||
template<class Fobj,class CComplex,int nbasis>
|
template<class Fobj,class CComplex,int nbasis>
|
||||||
class CoarsenedMatrix : public SparseMatrixBase<Lattice<iScalar<iVector<iVector<typename GridTypeMapper<CComplex>::vector_type, nbasis >, 1 > > > > {
|
class CoarsenedMatrix : public SparseMatrixBase<Lattice<iScalar<iVector<iVector<typename CComplex::vector_type, nbasis >, 1 > > > > {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef typename GridTypeMapper<CComplex>::vector_type innerType;
|
typedef typename CComplex::vector_type innerType;
|
||||||
typedef iScalar<iScalar<iScalar<innerType > > > siteScalar;
|
typedef iScalar<iScalar<iScalar<innerType > > > siteScalar;
|
||||||
typedef iScalar<iVector<iVector<innerType, nbasis >, 1 > > siteVector;
|
typedef iScalar<iVector<iVector<innerType, nbasis >, 1 > > siteVector;
|
||||||
typedef iScalar<iMatrix<iMatrix<innerType, nbasis >, 1 > > siteMatrix;
|
typedef iScalar<iMatrix<iMatrix<innerType, nbasis >, 1 > > siteMatrix;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user