Cadabra
Computer algebra system for field theory problems
map_mma.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_mma : public Algorithm {
15  public:
16  map_mma(const Kernel&, Ex&, const std::string& head);
17 
18  virtual bool can_apply(iterator);
19  virtual result_t apply(iterator&);
20 
21  private:
22  std::string head_;
23  std::vector<Ex::iterator> left;
24  std::set<Ex::iterator> index_factors;
25  };
26 
27  }
28 
Base class for all algorithms, containing generic routines and in particular the logic for index clas...
Definition: Algorithm.hh:59
Ex::iterator iterator
Definition: Algorithm.hh:70
Basic storage class for symbolic mathemematical expressions.
Definition: Storage.hh:142
result_t
Keeping track of what algorithms have done to this expression.
Definition: Storage.hh:163
Definition: Kernel.hh:15
Functionality to act with Mathematica on all scalar parts of an expression, and keep the result in-pl...
Definition: map_mma.hh:14
map_mma(const Kernel &, Ex &, const std::string &head)
Definition: map_mma.cc:12
std::set< Ex::iterator > index_factors
Definition: map_mma.hh:24
virtual result_t apply(iterator &)
Definition: map_mma.cc:82
std::string head_
Definition: map_mma.hh:22
std::vector< Ex::iterator > left
Definition: map_mma.hh:23
virtual bool can_apply(iterator)
Definition: map_mma.cc:17
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:83