Skip to content

Class TempLat::SU2DoubletUnaryOperator

template <typename R>

ClassList > TempLat > SU2DoubletUnaryOperator

A class which groups common features to su2doublets unary operators. More...

  • #include <su2doubletunaryoperator.h>

Inherited by the following classes: TempLat::SU2DoubletDagger, TempLat::SU2DoubletShifter, TempLat::SU2DoubletShifterByOne

Public Types

Type Name
typedef SU2DoubletGetter Getter

Public Static Attributes

Type Name
constexpr size_t size = 4

Public Functions

Type Name
SU2DoubletUnaryOperator (const R & pR)
DEVICE_INLINE_FUNCTION auto eval (const IDX &... idx) const
auto getDx () const
auto getKIR () 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 ()
virtual 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

Type Name
consteval size_t getNDim ()

Protected Attributes

Type Name
R mR

Detailed Description

Unit test: ctest -R test-su2doubletunaryoperator

Public Types Documentation

typedef Getter

using TempLat::SU2DoubletUnaryOperator< R >::Getter =  SU2DoubletGetter;

Public Static Attributes Documentation

variable size

constexpr size_t TempLat::SU2DoubletUnaryOperator< R >::size;

Public Functions Documentation

function SU2DoubletUnaryOperator

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

function eval

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

function getDx

inline auto TempLat::SU2DoubletUnaryOperator::getDx () const

function getKIR

inline auto TempLat::SU2DoubletUnaryOperator::getKIR () const

function operatorString

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

inline virtual std::string TempLat::SU2DoubletUnaryOperator::operatorString () const


function postGet

inline void TempLat::SU2DoubletUnaryOperator::postGet () 

function preGet

inline void TempLat::SU2DoubletUnaryOperator::preGet () 

function toString

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.

inline virtual std::string TempLat::SU2DoubletUnaryOperator::toString () const


Public Static Functions Documentation

function getNDim

static inline consteval size_t TempLat::SU2DoubletUnaryOperator::getNDim () 

Protected Attributes Documentation

variable mR

R TempLat::SU2DoubletUnaryOperator< R >::mR;


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