Cadabra
Computer algebra system for field theory problems
factor_out.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Algorithm.hh"
5 
6 namespace cadabra {
7 
9 
10  class factor_out : public Algorithm {
11  public:
12  factor_out(const Kernel&, Ex&, Ex&, bool right);
13 
14  virtual bool can_apply(iterator) override;
15  virtual result_t apply(iterator&) override;
16 
17  private:
18  bool to_right;
19 
20  typedef std::vector<Ex> to_factor_out_t;
22  };
23 
24  }
cadabra::factor_out::apply
virtual result_t apply(iterator &) override
Definition: factor_out.cc:27
cadabra::Algorithm::iterator
Ex::iterator iterator
Definition: Algorithm.hh:70
cadabra::factor_out
Definition: factor_out.hh:10
cadabra::Kernel
Definition: Kernel.hh:14
Algorithm.hh
cadabra::Ex::result_t
result_t
Keeping track of what algorithms have done to this expression.
Definition: Storage.hh:159
cadabra::factor_out::to_factor_out_t
std::vector< Ex > to_factor_out_t
Definition: factor_out.hh:20
cadabra::Algorithm
Definition: Algorithm.hh:59
cadabra::factor_out::can_apply
virtual bool can_apply(iterator) override
Check if the expression is a sum with more than one term.
Definition: factor_out.cc:21
cadabra::Ex
Definition: Storage.hh:140
cadabra::factor_out::to_right
bool to_right
Definition: factor_out.hh:18
cadabra
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:80
cadabra::factor_out::to_factor_out
to_factor_out_t to_factor_out
Definition: factor_out.hh:21
cadabra::factor_out::factor_out
factor_out(const Kernel &, Ex &, Ex &, bool right)
Definition: factor_out.cc:10