Grid 0.7.0
Lattice_peekpoke.h File Reference

Go to the source code of this file.

Functions

 NAMESPACE_BEGIN (Grid)
template<int Index, class vobj>
auto PeekIndex (const Lattice< vobj > &lhs, int i) -> Lattice< decltype(peekIndex< Index >(vobj(), i))>
template<int Index, class vobj>
auto PeekIndex (const Lattice< vobj > &lhs, int i, int j) -> Lattice< decltype(peekIndex< Index >(vobj(), i, j))>
template<int Index, class vobj>
void PokeIndex (Lattice< vobj > &lhs, const Lattice< decltype(peekIndex< Index >(vobj(), 0))> &rhs, int i)
template<int Index, class vobj>
void PokeIndex (Lattice< vobj > &lhs, const Lattice< decltype(peekIndex< Index >(vobj(), 0, 0))> &rhs, int i, int j)
template<class vobj, class sobj>
void pokeSite (const sobj &s, Lattice< vobj > &l, const Coordinate &site)
template<class vobj>
vobj::scalar_object peekSite (const Lattice< vobj > &l, const Coordinate &site)
template<class vobj, class sobj>
void peekSite (sobj &s, const Lattice< vobj > &l, const Coordinate &site)
template<class vobj, class sobj>
void peekLocalSite (sobj &s, const LatticeView< vobj > &l, Coordinate &site)
template<class vobj, class sobj>
void peekLocalSite (sobj &s, const Lattice< vobj > &l, Coordinate &site)
template<class vobj, class sobj>
void pokeLocalSite (const sobj &s, LatticeView< vobj > &l, Coordinate &site)
template<class vobj, class sobj>
void pokeLocalSite (const sobj &s, Lattice< vobj > &l, Coordinate &site)
 NAMESPACE_END (Grid)

Function Documentation

◆ NAMESPACE_BEGIN()

NAMESPACE_BEGIN ( Grid )

◆ PeekIndex() [1/2]

template<int Index, class vobj>
auto PeekIndex ( const Lattice< vobj > & lhs,
int i ) -> Lattice< decltype(peekIndex< Index >(vobj(), i))>

Definition at line 45 of file Lattice_peekpoke.h.

References accelerator_for, AcceleratorRead, AcceleratorWrite, autoView, and LatticeAccelerator< vobj >::Checkerboard().

Referenced by DDHMCFilter< GaugeField >::applyFilter(), DirichletFilter< MomentaField >::applyFilter(), SmearedConfigurationMasked< Gimpl >::ApplyMask(), batchBlockPromote(), blockPromote(), PlaqPlusRectangleAction< PeriodicGimplR >::deriv(), DomainWallVec5dImpl< vComplex, FundamentalRepresentation, CoeffReal >::DoubleStore(), GparityWilsonImpl< vComplex, FundamentalRepresentation, CoeffReal >::DoubleStore(), StaggeredImpl< vComplex, FundamentalRepresentation >::DoubleStore(), StaggeredVec5dImpl< vComplex, FundamentalRepresentation >::DoubleStore(), WilsonImpl< vComplex, FundamentalRepresentation, CoeffReal >::DoubleStore(), HybridMonteCarlo< IntegratorType >::evolve_hmc_step(), WilsonFlowAdaptive< Gimpl >::evolve_step_adaptive(), WilsonImpl< vComplex, FundamentalRepresentation, CoeffReal >::extractLinkField(), GaugeImplTypes< vComplex, Nc >::FieldSquareNorm(), WilsonLoops< PeriodicGimplR >::FieldStrength(), WilsonLoops< PeriodicGimplR >::FieldStrengthMxN(), GaugeTransform(), DWFSlowFermion< WilsonImplF >::ImportGauge(), ImprovedStaggeredFermion5D< Impl >::ImportGauge(), ImprovedStaggeredFermion< Impl >::ImportGauge(), LaplacianAdjointField< Impl >::ImportGauge(), NaiveStaggeredFermion< Impl >::ImportGauge(), ImprovedStaggeredFermion5D< Impl >::ImportGaugeSimple(), ImprovedStaggeredFermion< Impl >::ImportGaugeSimple(), WilsonLoops< PeriodicGimplR >::linkTrace(), SmearedConfigurationMasked< Gimpl >::logDetJacobianForceLevel(), SmearedConfigurationMasked< Gimpl >::logDetJacobianLevel(), LaplacianAdjointField< Impl >::M(), LaplacianAdjointField< Impl >::MDeriv(), LaplacianAdjointField< Impl >::MDeriv(), WilsonCloverFermion< WImpl, CloverHelpers< WImpl > >< WilsonImplD2 >::Meooe(), GeneralisedMomenta< Implementation >::MomentaAction(), peekColour(), peekColour(), peekColour(), peekColour(), peekLorentz(), peekLorentz(), peekSpin(), peekSpin(), peekSpin(), peekSpin(), LatticeMatrix< ncolour, group_name >::ProjectOnGeneralGroup(), LatticeMatrix< ncolour, group_name >::ProjectOnGeneralGroup(), LatticeMatrix< ncolour, group_name >::ProjectOnSpecialGroup(), LatticeMatrix< ncolour, group_name >::ProjectOnSpecialGroup(), Smear_HISQ< Gimpl >::projectU3(), WilsonLoops< PeriodicGimplR >::RectStapleUnoptimised(), OpenQcdIOChromaReference::redistribute(), Smear_HISQ< Gimpl >::smear(), WilsonLoops< PeriodicGimplR >::Staple(), WilsonLoops< PeriodicGimplR >::Staple(), WilsonLoops< PeriodicGimplR >::StapleLower(), WilsonLoops< PeriodicGimplR >::StapleUpper(), WilsonLoops< PeriodicGimplR >::sumPlaquette(), WilsonLoops< PeriodicGimplR >::sumRectangle(), WilsonLoops< PeriodicGimplR >::sumSpatialWilsonLoop(), WilsonLoops< PeriodicGimplR >::sumTimelikeWilsonLoop(), WilsonLoops< PeriodicGimplR >::sumWilsonLoop(), WilsonLoops< PeriodicGimplR >::timesliceSumSpatialPlaquette(), and OpenQcdIO::undoDoubleStore().

◆ PeekIndex() [2/2]

template<int Index, class vobj>
auto PeekIndex ( const Lattice< vobj > & lhs,
int i,
int j ) -> Lattice< decltype(peekIndex< Index >(vobj(), i, j))>

◆ PokeIndex() [1/2]

template<int Index, class vobj>
void PokeIndex ( Lattice< vobj > & lhs,
const Lattice< decltype(peekIndex< Index >(vobj(), 0))> & rhs,
int i )

Definition at line 73 of file Lattice_peekpoke.h.

References accelerator_for, AcceleratorRead, AcceleratorWrite, autoView, and peekIndex().

Referenced by DDHMCFilter< GaugeField >::applyFilter(), DirichletFilter< MomentaField >::applyFilter(), SmearedConfigurationMasked< Gimpl >::ApplyMask(), LatticeMatrix< ncolour, group_name >::ColdConfiguration(), SmearedConfigurationMasked< Gimpl >::Compute_MpInvJx_dNxxdSy(), SmearedConfigurationMasked< Gimpl >::ComputeNxy(), PlaqPlusRectangleAction< PeriodicGimplR >::deriv(), DomainWallVec5dImpl< vComplex, FundamentalRepresentation, CoeffReal >::DoubleStore(), WilsonImpl< vComplex, FundamentalRepresentation, CoeffReal >::DoubleStore(), HybridMonteCarlo< IntegratorType >::evolve_hmc_step(), GaugeTransform(), GaugeImplTypes< vComplex, Nc >::generate_momenta(), LatticeMatrix< ncolour, group_name >::HotConfiguration(), ImprovedStaggeredFermion5D< Impl >::ImportGauge(), ImprovedStaggeredFermion< Impl >::ImportGauge(), NaiveStaggeredFermion< Impl >::ImportGauge(), ImprovedStaggeredFermion< Impl >::ImportGaugeSimple(), GparityWilsonImpl< vComplex, FundamentalRepresentation, CoeffReal >::InsertForce4D(), StaggeredImpl< vComplex, FundamentalRepresentation >::InsertForce4D(), WilsonImpl< vComplex, FundamentalRepresentation, CoeffReal >::InsertForce4D(), StaggeredImpl< vComplex, FundamentalRepresentation >::InsertGaugeField(), SmearedConfigurationMasked< Gimpl >::logDetJacobianLevel(), LaplacianAdjointField< Impl >::M(), LaplacianAdjointField< Impl >::MDeriv(), LaplacianAdjointField< Impl >::MDeriv(), pokeColour(), pokeColour(), pokeLorentz(), pokeSpin(), pokeSpin(), LatticeMatrix< ncolour, group_name >::ProjectOnSpecialGroup(), LatticeMatrix< ncolour, group_name >::ProjectOnSpecialGroup(), Smear_HISQ< Gimpl >::projectU3(), OpenQcdIOChromaReference::redistribute(), Smear_HISQ< Gimpl >::smear(), SmearedConfigurationMasked< Gimpl >::SmearedConfigurationMasked(), LatticeMatrix< ncolour, group_name >::TepidConfiguration(), and OpenQcdIO::undoDoubleStore().

◆ PokeIndex() [2/2]

template<int Index, class vobj>
void PokeIndex ( Lattice< vobj > & lhs,
const Lattice< decltype(peekIndex< Index >(vobj(), 0, 0))> & rhs,
int i,
int j )

◆ pokeSite()

◆ peekSite() [1/2]

template<class vobj>
vobj::scalar_object peekSite ( const Lattice< vobj > & l,
const Coordinate & site )

◆ peekSite() [2/2]

template<class vobj, class sobj>
void peekSite ( sobj & s,
const Lattice< vobj > & l,
const Coordinate & site )

◆ peekLocalSite() [1/2]

◆ peekLocalSite() [2/2]

template<class vobj, class sobj>
void peekLocalSite ( sobj & s,
const Lattice< vobj > & l,
Coordinate & site )
inline

Definition at line 186 of file Lattice_peekpoke.h.

References autoView, CpuRead, and peekLocalSite().

◆ pokeLocalSite() [1/2]

◆ pokeLocalSite() [2/2]

template<class vobj, class sobj>
void pokeLocalSite ( const sobj & s,
Lattice< vobj > & l,
Coordinate & site )
inline

Definition at line 222 of file Lattice_peekpoke.h.

References autoView, CpuWrite, and pokeLocalSite().

◆ NAMESPACE_END()

NAMESPACE_END ( Grid )