Cadabra
Computer algebra system for field theory problems
Loading...
Searching...
No Matches
simplify.hh
Go to the documentation of this file.
1
2#pragma once
3
4#include "Algorithm.hh"
5
6namespace cadabra {
7
19
20 class simplify : public Algorithm {
21 public:
22 simplify(const Kernel&, Ex&, const std::string& function="");
23
24 virtual bool can_apply(iterator);
25 virtual result_t apply(iterator&);
26
27 private:
28 std::string function_;
29 std::vector<Ex::iterator> left;
30 std::set<Ex::iterator> index_factors;
31 };
32
33 }
Base class for all algorithms, containing generic routines and in particular the logic for index clas...
Definition Algorithm.hh:54
Definition Storage.hh:170
result_t
Keeping track of what algorithms have done to this expression.
Definition Storage.hh:200
Ex::iterator iterator
Definition ExManip.hh:12
Definition Kernel.hh:15
General purpose brute force scalar simplification algorithm.
Definition simplify.hh:20
std::set< Ex::iterator > index_factors
Definition simplify.hh:30
virtual result_t apply(iterator &)
Definition simplify.cc:100
std::string function_
Definition simplify.hh:28
std::vector< Ex::iterator > left
Definition simplify.hh:29
virtual bool can_apply(iterator)
Definition simplify.cc:20
Functions to handle the exchange properties of two or more symbols in a product.
Definition Adjform.cc:83
void set(rset_t::iterator &num, multiplier_t fac)
Definition Storage.cc:1180