Documentation of MARTY
A Modern ARtificial Theoretical phYsicist
Public Types | Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes | Friends
mty::Lagrangian Class Reference

Interaction lagrangian of a model, allows to get all diagrams for a particular process by expanding it the exponential way. More...

#include <lagrangian.h>

Public Types

using TermType = InteractionTerm::TermType
 

Public Member Functions

 Lagrangian (const Lagrangian &other)=default
 
bool contains (const TermType &searchTerm) const
 
bool contains (const InteractionTerm &searchTerm) const
 
csl::Expr getExpression () const
 
csl::Tensor getPoint () const
 
void mergeTerms ()
 
void removeParticle (Particle const &particle)
 
csl::Expr operator() (const csl::Expr &point)
 
size_t size () const
 
size_t fullSize () const
 
bool empty () const
 
bool totalEmpty () const
 
TermType operator[] (size_t pos) const
 
TermTypeoperator[] (size_t pos)
 
std::vector< TermType >::iterator begin ()
 
std::vector< TermType >::iterator end ()
 
std::vector< TermType >::const_iterator begin () const
 
std::vector< TermType >::const_iterator end () const
 
void push_back (const csl::Expr &newTerm)
 
void push_back (InteractionTerm const &newTerm)
 
void push_back (TermType const &newTerm)
 

Static Public Member Functions

static void mergeTerms (std::vector< TermType > &terms)
 

Data Fields

std::vector< TermTypekinetic
 
std::vector< TermTypemass
 
std::vector< TermTypeinteraction
 

Protected Member Functions

void ensurePoint (csl::Expr &expr)
 
void ensurePoint (InteractionTerm &term)
 

Protected Attributes

bool expressionComputed = false
 
csl::Expr expression
 

Friends

std::ostream & operator<< (std::ostream &fout, const Lagrangian &L)
 

Detailed Description

Interaction lagrangian of a model, allows to get all diagrams for a particular process by expanding it the exponential way.


The documentation for this class was generated from the following files: