Cadabra
Computer algebra system for field theory problems
sym.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Algorithm.hh"
4 #include <vector>
5 #include "Combinatorics.hh"
6 
7 namespace cadabra {
8 
9  class sym : virtual public Algorithm {
10  public:
11  sym(const Kernel&, Ex&, Ex&, bool sign);
12 
13  virtual bool can_apply(iterator) override;
14  virtual result_t apply(iterator& it) override;
15 
16  protected:
18  bool sign;
19 
20  std::vector<unsigned int> argloc_2_treeloc;
22 
23  result_t doit(iterator&, bool);
24  };
25 
26  }
cadabra::Algorithm::iterator
Ex::iterator iterator
Definition: Algorithm.hh:70
cadabra::sym::sign
bool sign
Definition: sym.hh:18
cadabra::Kernel
Definition: Kernel.hh:14
Algorithm.hh
cadabra::sym
Definition: sym.hh:9
cadabra::sym::can_apply
virtual bool can_apply(iterator) override
Definition: sym.cc:15
Combinatorics.hh
cadabra::Ex::result_t
result_t
Keeping track of what algorithms have done to this expression.
Definition: Storage.hh:159
cadabra::sym::sym
sym(const Kernel &, Ex &, Ex &, bool sign)
Definition: sym.cc:8
cadabra::sym::doit
result_t doit(iterator &, bool)
Definition: sym.cc:40
cadabra::sym::argloc_2_treeloc
std::vector< unsigned int > argloc_2_treeloc
Definition: sym.hh:20
cadabra::Algorithm
Definition: Algorithm.hh:59
cadabra::sym::raw_ints
combin::combinations< unsigned int > raw_ints
Definition: sym.hh:21
cadabra::Ex
Definition: Storage.hh:140
cadabra
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:80
cadabra::sym::apply
virtual result_t apply(iterator &it) override
Definition: sym.cc:28
combin::combinations< unsigned int >
cadabra::sym::objects
Ex objects
Definition: sym.hh:17