Cadabra
Computer algebra system for field theory problems
product_rule.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Algorithm.hh"
4 
5 namespace cadabra {
6 
7  class product_rule : public Algorithm {
8  public:
9  product_rule(const Kernel&, Ex&);
10 
11  virtual bool can_apply(iterator) override;
12  virtual result_t apply(iterator&) override;
13 
15  unsigned int number_of_indices;
16  };
17 
18  }
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
Ex::sibling_iterator sibling_iterator
Definition: Algorithm.hh:72
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:164
Definition: Kernel.hh:15
Definition: product_rule.hh:7
product_rule(const Kernel &, Ex &)
Definition: product_rule.cc:13
unsigned int number_of_indices
Definition: product_rule.hh:15
sibling_iterator prodnode
Definition: product_rule.hh:14
virtual result_t apply(iterator &) override
Definition: product_rule.cc:50
virtual bool can_apply(iterator) override
Definition: product_rule.cc:23
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:83