mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Extra easier signature for peek
This commit is contained in:
parent
7eb29cf529
commit
5ddea3829d
@ -125,6 +125,12 @@ void pokeSite(const sobj &s,Lattice<vobj> &l,const Coordinate &site){
|
|||||||
//////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////
|
||||||
// Peek a scalar object from the SIMD array
|
// Peek a scalar object from the SIMD array
|
||||||
//////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////
|
||||||
|
template<class vobj>
|
||||||
|
typename vobj::scalar_object peekSite(const Lattice<vobj> &l,const Coordinate &site){
|
||||||
|
typename vobj::scalar_object s;
|
||||||
|
peekSite(s,l,site);
|
||||||
|
return s;
|
||||||
|
}
|
||||||
template<class vobj,class sobj>
|
template<class vobj,class sobj>
|
||||||
void peekSite(sobj &s,const Lattice<vobj> &l,const Coordinate &site){
|
void peekSite(sobj &s,const Lattice<vobj> &l,const Coordinate &site){
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user