Cadabra
Computer algebra system for field theory problems
Loading...
Searching...
No Matches
integrate_by_parts.hh
Go to the documentation of this file.
1
2
3#pragma once
4
5#include "Algorithm.hh"
6
7namespace cadabra {
8
12
13
15 public:
16 integrate_by_parts(const Kernel&, Ex&, Ex&);
17
18 virtual bool can_apply(iterator) override;
19 virtual result_t apply(iterator&) override;
20
21 private:
22 // Integrate by parts on a single term in the integrand. First
23 // argument points to the integral, second to a term in the
24 // integrand.
26
27 // Are the given integral and derivative inverses of each-other?
28 bool int_and_derivative_related(iterator int_it, iterator der_it) const;
29
30 // Split one derivative from a multiple derivative.
32
33 // Wrap the indicated range of factor nodes inside the product node in
34 // the derivative.
36
37 // Determine whether the indicated derivative acts on the 'away_from'
38 // expression.
39 bool derivative_acting_on_arg(iterator der_it) const;
40
41 // Expression to move derivative away from.
43 };
44
45 }
Algorithm(const Kernel &, Ex &)
Initialise the algorithm with a reference to the expression tree, but do not yet do anything with thi...
Definition Algorithm.cc:52
Ex::result_t result_t
Definition Algorithm.hh:65
Definition Storage.hh:170
Ex::sibling_iterator sibling_iterator
Definition ExManip.hh:14
Ex::iterator iterator
Definition ExManip.hh:12
Definition Kernel.hh:15
result_t handle_term(iterator, iterator &)
Definition integrate_by_parts.cc:101
Ex away_from
Definition integrate_by_parts.hh:42
virtual bool can_apply(iterator) override
Definition integrate_by_parts.cc:15
integrate_by_parts(const Kernel &, Ex &, Ex &)
Definition integrate_by_parts.cc:10
bool derivative_acting_on_arg(iterator der_it) const
Definition integrate_by_parts.cc:64
virtual result_t apply(iterator &) override
Definition integrate_by_parts.cc:21
bool int_and_derivative_related(iterator int_it, iterator der_it) const
Definition integrate_by_parts.cc:59
Ex wrap(iterator, sibling_iterator, sibling_iterator) const
Definition integrate_by_parts.cc:250
void split_off_single_derivative(iterator int_it, iterator der_it)
Definition integrate_by_parts.cc:80
Functions to handle the exchange properties of two or more symbols in a product.
Definition Adjform.cc:83