Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vary.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Algorithm.hh"
6 
7 namespace cadabra {
8 
12 
13 class vary : public Algorithm {
14  public:
15  vary(const Kernel&, Ex& tr, Ex& args);
16 
17  virtual bool can_apply(iterator st) override;
18  virtual result_t apply(iterator&) override;
19 
20  private:
21  Ex& args;
22 
23 };
24 
25 }
Base class for all algorithms, containing generic routines and in particular the logic for index clas...
Definition: Algorithm.hh:58
Generic variational derivative algorithm.
Definition: vary.hh:13
Ex & args
Definition: vary.hh:21
Basic storage class for symbolic mathemematical expressions.
Definition: Storage.hh:130
vary(const Kernel &, Ex &tr, Ex &args)
Definition: vary.cc:36
virtual bool can_apply(iterator st) override
Definition: vary.cc:41
Ex::iterator iterator
Definition: Algorithm.hh:69
virtual result_t apply(iterator &) override
Definition: vary.cc:70
Definition: Kernel.hh:15
result_t
Keeping track of what algorithms have done to this expression.
Definition: Storage.hh:149
Ex & tr
Definition: Algorithm.hh:146