33 bool isLeft {
false };
55 bool contains(
csl::Index const &)
const override {
64 bool isOnShell()
const {
return onshell; }
65 bool isIncomingParticle()
const {
return incoming && particle; }
66 bool isIncomingAntiParticle()
const {
return incoming && !particle; }
67 bool isOutgoingParticle()
const {
return !incoming && particle; }
68 bool isOutgoingAntiParticle()
const {
return !incoming && !particle; }
70 bool isComplexConjugated()
const {
71 return isIncomingAntiParticle() || isOutgoingParticle();
74 bool isZero()
const override {
return false; }
76 bool isHappyWith(
Field const &other)
const {
77 return partnerShip.self == -1
78 || other.partnerShip.self == partnerShip.other;
81 bool isLeftField()
const {
82 return partnerShip.isLeft;
91 GExpr copy()
const override;
92 GExpr refresh()
const override;
94 void print(std::ostream &out = std::cout)
const override;
96 bool isSame(
Field const &other)
const;
111 template<
class ...Args>
114 return std::make_shared<Field>(std::forward<Args>(args)...);
Definition: tensorset.h:30
Definition: abstractgammasym.h:87
Definition: sglfield.h:30
Definition: abstractgammasym.h:32
Base class for expressions with arguments in SGL.
Definition: multifunction.h:54
Definition: sglfield.h:36