QDP++
QDP::SumMultiOLatticeThreadArgs< RHS, T > Struct Template Reference

multi1d<OScalar> dest = sumMulti(OLattice,Set) More...

#include <qdp_scalar_specific.h>

Public Member Functions

 SumMultiOLatticeThreadArgs (const multi1d< int > &lat_color_, const QDPExpr< RHS, OLattice< T > > &s_, multi1d< typename UnaryReturn< OLattice< T >, FnSumMulti >::Type_t > &dest_)

Public Attributes

const multi1d< int > & lat_color
const QDPExpr< RHS, OLattice< T > > & s
multi1d< typename UnaryReturn< OLattice< T >, FnSumMulti >::Type_t > & dest

Detailed Description

template<class RHS, class T>
struct QDP::SumMultiOLatticeThreadArgs< RHS, T >

multi1d<OScalar> dest = sumMulti(OLattice,Set)

Compute the global sum on multiple subsets specified by Set

This is a very simple implementation. There is no need for anything fancier unless global sums are just so extraordinarily slow. Otherwise, generalized sums happen so infrequently the slow version is fine.

Definition at line 715 of file qdp_scalar_specific.h.

Constructor & Destructor Documentation

◆ SumMultiOLatticeThreadArgs()

template<class RHS, class T>
QDP::SumMultiOLatticeThreadArgs< RHS, T >::SumMultiOLatticeThreadArgs ( const multi1d< int > & lat_color_,
const QDPExpr< RHS, OLattice< T > > & s_,
multi1d< typename UnaryReturn< OLattice< T >, FnSumMulti >::Type_t > & dest_ )
inline

Definition at line 719 of file qdp_scalar_specific.h.

References dest, lat_color, and s.

Member Data Documentation

◆ dest

template<class RHS, class T>
multi1d<typename UnaryReturn<OLattice<T>, FnSumMulti>::Type_t>& QDP::SumMultiOLatticeThreadArgs< RHS, T >::dest

Definition at line 718 of file qdp_scalar_specific.h.

Referenced by QDP::sumMultiKernel(), and SumMultiOLatticeThreadArgs().

◆ lat_color

template<class RHS, class T>
const multi1d<int>& QDP::SumMultiOLatticeThreadArgs< RHS, T >::lat_color

Definition at line 716 of file qdp_scalar_specific.h.

Referenced by QDP::sumMultiKernel(), and SumMultiOLatticeThreadArgs().

◆ s

template<class RHS, class T>
const QDPExpr<RHS,OLattice<T> >& QDP::SumMultiOLatticeThreadArgs< RHS, T >::s

Definition at line 717 of file qdp_scalar_specific.h.

Referenced by QDP::sumMultiKernel(), and SumMultiOLatticeThreadArgs().


The documentation for this struct was generated from the following file: