Cadabra
Computer algebra system for field theory problems
map_sympy.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Algorithm.hh"
5 
6 namespace cadabra {
7 
13 
14  class map_sympy : public Algorithm {
15  public:
16  map_sympy(const Kernel&, Ex&, const std::string& head, std::vector<std::string> args);
17 
18  virtual bool can_apply(iterator);
19  virtual result_t apply(iterator&);
20 
21  private:
22  std::string head_;
23  std::vector<std::string> args_;
24  std::vector<Ex::iterator> left;
25  std::set<Ex::iterator> index_factors;
26  };
27 
28  }
29 
Algorithm.hh
cadabra::map_sympy::apply
virtual result_t apply(iterator &)
Definition: map_sympy.cc:82
cadabra::Kernel
Definition: Kernel.hh:15
cadabra::map_sympy::can_apply
virtual bool can_apply(iterator)
Definition: map_sympy.cc:16
cadabra::map_sympy::args_
std::vector< std::string > args_
Definition: map_sympy.hh:23
cadabra::map_sympy::left
std::vector< Ex::iterator > left
Definition: map_sympy.hh:24
cadabra::map_sympy::head_
std::string head_
Definition: map_sympy.hh:22
cadabra::map_sympy::map_sympy
map_sympy(const Kernel &, Ex &, const std::string &head, std::vector< std::string > args)
Definition: map_sympy.cc:11
cadabra::Algorithm::iterator
Ex::iterator iterator
Definition: Algorithm.hh:70
cadabra::Algorithm
Definition: Algorithm.hh:59
cadabra::map_sympy::index_factors
std::set< Ex::iterator > index_factors
Definition: map_sympy.hh:25
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::map_sympy
Definition: map_sympy.hh:14
cadabra::Ex::result_t
result_t
Keeping track of what algorithms have done to this expression.
Definition: Storage.hh:159