pairinteraction
A Rydberg Interaction Calculator
Operator.cpp File Reference
+ Include dependency graph for Operator.cpp:

Go to the source code of this file.

Namespaces

namespace  pairinteraction
 

Macros

#define INSTANTIATE_OPERATOR_HELPER(SCALAR, TYPE)
 
#define INSTANTIATE_OPERATOR(SCALAR)
 

Functions

template<typename Derived >
Derived pairinteraction::operator* (const typename Operator< Derived >::scalar_t &lhs, const Operator< Derived > &rhs)
 
template<typename Derived >
Derived pairinteraction::operator* (const Operator< Derived > &lhs, const typename Operator< Derived >::scalar_t &rhs)
 
template<typename Derived >
Derived pairinteraction::operator/ (const Operator< Derived > &lhs, const typename Operator< Derived >::scalar_t &rhs)
 
template<typename Derived >
Derived & pairinteraction::operator+= (Operator< Derived > &lhs, const Operator< Derived > &rhs)
 
template<typename Derived >
Derived & pairinteraction::operator-= (Operator< Derived > &lhs, const Operator< Derived > &rhs)
 
template<typename Derived >
Derived pairinteraction::operator+ (const Operator< Derived > &lhs, const Operator< Derived > &rhs)
 
template<typename Derived >
Derived pairinteraction::operator- (const Operator< Derived > &lhs, const Operator< Derived > &rhs)
 

Macro Definition Documentation

◆ INSTANTIATE_OPERATOR

#define INSTANTIATE_OPERATOR (   SCALAR)
Value:
INSTANTIATE_OPERATOR_HELPER(SCALAR, OperatorAtom) \
INSTANTIATE_OPERATOR_HELPER(SCALAR, OperatorPair)
#define INSTANTIATE_OPERATOR_HELPER(SCALAR, TYPE)
Definition: Operator.cpp:269

Definition at line 282 of file Operator.cpp.

◆ INSTANTIATE_OPERATOR_HELPER

#define INSTANTIATE_OPERATOR_HELPER (   SCALAR,
  TYPE 
)
Value:
template class Operator<TYPE<SCALAR>>; \
template TYPE<SCALAR> operator*(const SCALAR &lhs, const Operator<TYPE<SCALAR>> &rhs); \
template TYPE<SCALAR> operator*(const Operator<TYPE<SCALAR>> &lhs, const SCALAR &rhs); \
template TYPE<SCALAR> operator/(const Operator<TYPE<SCALAR>> &lhs, const SCALAR &rhs); \
template TYPE<SCALAR> &operator+=(Operator<TYPE<SCALAR>> &lhs, \
const Operator<TYPE<SCALAR>> &rhs); \
template TYPE<SCALAR> &operator-=(Operator<TYPE<SCALAR>> &lhs, \
const Operator<TYPE<SCALAR>> &rhs); \
template TYPE<SCALAR> operator+(const Operator<TYPE<SCALAR>> &lhs, \
const Operator<TYPE<SCALAR>> &rhs); \
template TYPE<SCALAR> operator-(const Operator<TYPE<SCALAR>> &lhs, \
const Operator<TYPE<SCALAR>> &rhs);
Derived operator+(const Operator< Derived > &lhs, const Operator< Derived > &rhs)
Definition: Operator.cpp:248
Derived & operator-=(Operator< Derived > &lhs, const Operator< Derived > &rhs)
Definition: Operator.cpp:239
Derived operator*(const typename Operator< Derived >::scalar_t &lhs, const Operator< Derived > &rhs)
Definition: Operator.cpp:209
Derived & operator+=(Operator< Derived > &lhs, const Operator< Derived > &rhs)
Definition: Operator.cpp:230
Derived operator/(const Operator< Derived > &lhs, const typename Operator< Derived >::scalar_t &rhs)
Definition: Operator.cpp:223
Derived operator-(const Operator< Derived > &lhs, const Operator< Derived > &rhs)
Definition: Operator.cpp:258

Definition at line 269 of file Operator.cpp.