Skip to content

Class TempLat::SU2Shifter

template <typename R, int... N>

ClassList > TempLat > SU2Shifter

A class which applies the shift method to su2 objects. More...

  • #include <su2shift.h>

Inherits the following classes: TempLat::SU2UnaryOperator

Public Types inherited from TempLat::SU2UnaryOperator

See TempLat::SU2UnaryOperator

Type Name
typedef SU2Getter Getter

Public Static Attributes

Type Name
constexpr size_t dim = sizeof...(N)
constexpr auto shifts = device::make\_tuple(N...)

Public Static Attributes inherited from TempLat::SU2UnaryOperator

See TempLat::SU2UnaryOperator

Type Name
constexpr size_t size = 4

Public Functions

Type Name
auto SU2Get (Tag< M > t) const
SU2Shifter (const R & pR)
void doWeNeedGhosts () const
DEVICE_INLINE_FUNCTION auto eval (const IDX &... idx) const
virtual std::string operatorString () override const
Override this method in your derived class, to have an easy implementation of your toString method.

Public Functions inherited from TempLat::SU2UnaryOperator

See TempLat::SU2UnaryOperator

Type Name
SU2UnaryOperator (const R & pR)
device::Idx confirmGhostsUpToDate () const
void confirmSpace (const LayoutStruct< NDim > & newLayout, const SpaceStateType & spaceType) const
void doWeNeedGhosts () const
Space/ghost confirmation by walking the operand's structure (see SU2BinaryOperator ). Note: shifters (SU2Shifter/SU2ShifterByOne) OVERRIDE doWeNeedGhosts to trigger the actual ghost exchange for the shifted read.
DEVICE_INLINE_FUNCTION auto eval (const IDX &... idx) const
auto getDx () const
auto getKIR () const
const R & getOperand () const
Access the single operand. Used by the algebraic simplification rules (e.g. dagger involution / shift, see su2dagger.h ).
auto getToolBox () const
virtual std::string operatorString () const
Override this method in your derived class, to have an easy implementation of your toString method.
void postGet ()
void preGet ()
std::string toString () const
If your descending class implements operatorString() and your operator is of the type "OP b" (where OP is * or whatever), this toString method does all the work for you, only adding parentheses if b contains spaces.

Public Static Functions inherited from TempLat::SU2UnaryOperator

See TempLat::SU2UnaryOperator

Type Name
consteval size_t getNDim ()

Protected Attributes inherited from TempLat::SU2UnaryOperator

See TempLat::SU2UnaryOperator

Type Name
R mR

Detailed Description

Unit test: ctest -R test-su2shift

Public Static Attributes Documentation

variable dim

constexpr size_t TempLat::SU2Shifter< R, N >::dim;

variable shifts

constexpr auto TempLat::SU2Shifter< R, N >::shifts;

Public Functions Documentation

function SU2Get

template<int M>
inline auto TempLat::SU2Shifter::SU2Get (
    Tag < M > t
) const

function SU2Shifter

inline TempLat::SU2Shifter::SU2Shifter (
    const R & pR
) 

function doWeNeedGhosts

inline void TempLat::SU2Shifter::doWeNeedGhosts () const

function eval

template<typename... IDX>
inline DEVICE_INLINE_FUNCTION auto TempLat::SU2Shifter::eval (
    const IDX &... idx
) const

function operatorString

Override this method in your derived class, to have an easy implementation of your toString method.

inline virtual std::string TempLat::SU2Shifter::operatorString () override const

Implements TempLat::SU2UnaryOperator::operatorString



The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/lattice/algebra/su2algebra/su2shift.h