Cadabra
Computer algebra system for field theory problems
simplify.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Algorithm.hh"
5 
6 namespace cadabra {
7 
14 
15  class simplify : public Algorithm {
16  public:
17  simplify(const Kernel&, Ex&);
18 
19  virtual bool can_apply(iterator);
20  virtual result_t apply(iterator&);
21 
22  private:
23  std::vector<Ex::iterator> left;
24  std::set<Ex::iterator> index_factors;
25  };
26 
27  }
Algorithm.hh
cadabra::Kernel
Definition: Kernel.hh:15
cadabra::simplify::left
std::vector< Ex::iterator > left
Definition: simplify.hh:23
cadabra::simplify
Definition: simplify.hh:15
cadabra::Algorithm::iterator
Ex::iterator iterator
Definition: Algorithm.hh:70
cadabra::Algorithm
Definition: Algorithm.hh:59
cadabra::simplify::can_apply
virtual bool can_apply(iterator)
Definition: simplify.cc:19
cadabra::simplify::simplify
simplify(const Kernel &, Ex &)
Definition: simplify.cc:14
cadabra
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:83
cadabra::Ex
Definition: Storage.hh:140
cadabra::simplify::index_factors
std::set< Ex::iterator > index_factors
Definition: simplify.hh:24
cadabra::Ex::result_t
result_t
Keeping track of what algorithms have done to this expression.
Definition: Storage.hh:159
cadabra::simplify::apply
virtual result_t apply(iterator &)
Definition: simplify.cc:97