Documentation of MARTY
A Modern ARtificial Theoretical phYsicist
Public Member Functions | Protected Attributes
sgl::AbstractGeneralizedIndex Class Reference
Inheritance diagram for sgl::AbstractGeneralizedIndex:
[legend]

Public Member Functions

 AbstractGeneralizedIndex (csl::Index const &t_index)
 
 AbstractGeneralizedIndex (std::vector< csl::Index > const &t_indices)
 
bool hasSelfContraction () const
 
void printIndices (std::ostream &out, char sep) const
 
std::vector< csl::Index > const & indices () const override
 
std::vector< csl::Index > & indices () override
 
bool contains (csl::Index const &index) const override
 
void replace (csl::Index const &i, csl::Index const &j) override
 
- Public Member Functions inherited from sgl::AbstractLiteral
size_t size () const override
 
GExpr const & argument (size_t i) const override
 
GExprargument (size_t i) override
 
iterator begin () override
 
const_iterator begin () const override
 
iterator end () override
 
const_iterator end () const override
 
- Public Member Functions inherited from sgl::AbstractGammaSym
virtual bool isZero () const =0
 
virtual bool hasPropertyWith (GExpr const &other) const
 
virtual GExpr propertyWith (GExpr const &other) const
 
virtual csl::Expr getFactor () const
 
virtual GExpr getTerm () const
 
GExpr self ()
 
virtual GExpr copy () const =0
 
virtual GExpr refresh () const =0
 
virtual GExpr simplify ()
 
virtual csl::Expr const & expr () const
 
virtual csl::Exprexpr ()
 
virtual csl::Expr toCSL (TensorSet const &tensors) const =0
 
virtual void print (std::ostream &out=std::cout) const =0
 
void errorPrint () const
 

Protected Attributes

std::vector< csl::Indexm_indices
 

Additional Inherited Members

- Public Types inherited from sgl::AbstractGammaSym
using iterator = std::vector< GExpr >::iterator
 
using const_iterator = std::vector< GExpr >::const_iterator
 

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