1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-10 19:36:56 +01:00

Comms and memory benchmarks added

This commit is contained in:
Peter Boyle
2015-05-03 09:44:47 +01:00
parent 253362f978
commit 9d93d1e6d4
14 changed files with 300 additions and 59 deletions

View File

@ -13,7 +13,7 @@ namespace Grid {
vzero(*this);
return (*this);
}
vComplexD(){};
vComplexD()=default;
vComplexD(ComplexD a){
vsplat(*this,a);
};

View File

@ -28,7 +28,7 @@ namespace Grid {
vzero(*this);
return (*this);
}
vComplexF(){};
vComplexF()=default;
vComplexF(ComplexF a){
vsplat(*this,a);
};

View File

@ -10,10 +10,13 @@ namespace Grid {
typedef dvec vector_type;
typedef RealD scalar_type;
vRealD(){};
vRealD()=default;
vRealD(RealD a){
vsplat(*this,a);
};
vRealD(Zero &zero){
zeroit(*this);
}
friend inline void mult(vRealD * __restrict__ y,const vRealD * __restrict__ l,const vRealD *__restrict__ r) {*y = (*l) * (*r);}
friend inline void sub (vRealD * __restrict__ y,const vRealD * __restrict__ l,const vRealD *__restrict__ r) {*y = (*l) - (*r);}

View File

@ -8,14 +8,16 @@ namespace Grid {
fvec v;
public:
typedef fvec vector_type;
typedef RealF scalar_type;
vRealF(){};
vRealF()=default;
vRealF(RealF a){
vsplat(*this,a);
};
vRealF(Zero &zero){
zeroit(*this);
}
////////////////////////////////////
// Arithmetic operator overloads +,-,*
////////////////////////////////////