1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-07-06 16:37:06 +01:00

Hide internal data

This commit is contained in:
paboyle
2018-01-26 23:06:03 +00:00
parent 2b4067bb71
commit 43cea62855
16 changed files with 160 additions and 158 deletions

View File

@ -48,7 +48,7 @@ inline Lattice<vInteger> LLComparison(vfunctor op,const Lattice<lobj> &lhs,const
{
Lattice<vInteger> ret(rhs._grid);
accelerator_loop( ss, rhs, {
ret._odata[ss]=op(lhs._odata[ss],rhs._odata[ss]);
ret[ss]=op(lhs[ss],rhs[ss]);
});
return ret;
}
@ -60,7 +60,7 @@ inline Lattice<vInteger> LSComparison(vfunctor op,const Lattice<lobj> &lhs,const
{
Lattice<vInteger> ret(lhs._grid);
accelerator_loop( ss, lhs, {
ret._odata[ss]=op(lhs._odata[ss],rhs);
ret[ss]=op(lhs[ss],rhs);
});
return ret;
}
@ -72,7 +72,7 @@ inline Lattice<vInteger> SLComparison(vfunctor op,const lobj &lhs,const Lattice<
{
Lattice<vInteger> ret(rhs._grid);
accelerator_loop( ss, rhs, {
ret._odata[ss]=op(lhs._odata[ss],rhs);
ret[ss]=op(lhs[ss],rhs);
});
return ret;
}