Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sym.hh
Go to the documentation of this file.
1 
2 #include "Algorithm.hh"
3 #include <vector>
4 #include "Combinatorics.hh"
5 
6 namespace cadabra {
7 
8  class sym : virtual public Algorithm {
9  public:
10  sym(const Kernel&, Ex&, Ex&, bool sign);
11 
12  virtual bool can_apply(iterator) override;
13  virtual result_t apply(iterator& it) override;
14 
15  protected:
17  bool sign;
18 
19  std::vector<unsigned int> argloc_2_treeloc;
21 
22  result_t doit(iterator&, bool);
23  };
24 
25 }
Base class for all algorithms, containing generic routines and in particular the logic for index clas...
Definition: Algorithm.hh:58
combin::combinations< unsigned int > raw_ints
Definition: sym.hh:20
Basic storage class for symbolic mathemematical expressions.
Definition: Storage.hh:130
std::vector< unsigned int > argloc_2_treeloc
Definition: sym.hh:19
virtual result_t apply(iterator &it) override
Definition: sym.cc:24
result_t doit(iterator &, bool)
Definition: sym.cc:36
Ex::iterator iterator
Definition: Algorithm.hh:69
Definition: sym.hh:8
virtual bool can_apply(iterator) override
Definition: sym.cc:11
bool sign
Definition: sym.hh:17
Definition: Kernel.hh:15
result_t
Keeping track of what algorithms have done to this expression.
Definition: Storage.hh:149
Ex objects
Definition: sym.hh:16
sym(const Kernel &, Ex &, Ex &, bool sign)
Definition: sym.cc:6