Class TempLat::BinaryOperator
template <typename R, typename T>
ClassList > TempLat > BinaryOperator
A parent class which implements the common methods that all binary operators (*, +, -,... ) share. More...
#include <binaryoperator.h>
Inherited by the following classes: TempLat::ChiralProjector, TempLat::GWProjector, TempLat::HermSymTracelessMultiplicationTrace, TempLat::MatrixMatrixMultiplicationTrace, TempLat::Operators::Addition, TempLat::Operators::Arg, TempLat::Operators::Arg2, TempLat::Operators::Division, TempLat::Operators::Multiplication, TempLat::Operators::Power, TempLat::Operators::SafeDivision, TempLat::Operators::Subtraction, TempLat::SU2Dotter, TempLat::SymSymTracelessMultiplicationTrace, TempLat::VectorDotter
Public Functions
| Type | Name |
|---|---|
| BinaryOperator (const R & pR, const T & pT) |
|
| device::Idx | confirmGhostsUpToDate () const |
| void | confirmSpace (const LayoutStruct< NDim > & newLayout, const SpaceStateType & spaceType) const |
| void | doWeNeedGhosts () const |
| auto | getDx () const |
| auto | getKIR () const |
| auto | getToolBox () const |
| virtual std::string | operatorString () const = 0 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 "a OP b" (where OP is * or whatever), this toString method does all the work for you. |
Public Static Functions
| Type | Name |
|---|---|
| consteval size_t | getNDim () |
Protected Attributes
| Type | Name |
|---|---|
| R | mR |
| T | mT |
Detailed Description
Unit test: ctest -R test-binaryoperator
Public Functions Documentation
function BinaryOperator
function confirmGhostsUpToDate
function confirmSpace
template<size_t NDim>
inline void TempLat::BinaryOperator::confirmSpace (
const LayoutStruct < NDim > & newLayout,
const SpaceStateType & spaceType
) const
function doWeNeedGhosts
function getDx
function getKIR
function getToolBox
For measurement objects.
function operatorString
Override this method in your derived class, to have an easy implementation of your toString method.
function postGet
function preGet
function toString
If your descending class implements operatorString() and your operator is of the type "a OP b" (where OP is * or whatever), this toString method does all the work for you.
Public Static Functions Documentation
function getNDim
Protected Attributes Documentation
variable mR
variable mT
The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/lattice/algebra/operators/binaryoperator.h