Cadabra
Computer algebra system for field theory problems
fierz.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Algorithm.hh"
5 #include "properties/Indices.hh"
6 #include "properties/Spinor.hh"
7 
8 namespace cadabra {
9 
10  class fierz : public Algorithm {
11  public:
12  fierz(const Kernel&, Ex&, Ex&);
13 
14  virtual bool can_apply(iterator) override;
15  virtual result_t apply(iterator&) override;
16 
17  private:
19 
23  int dim, spinordim;
24  const Indices *indprop;
25  };
26 
27  }
Indices.hh
cadabra::fierz::dim
int dim
Definition: fierz.hh:23
Spinor.hh
cadabra::fierz::prop3
const Spinor * prop3
Definition: fierz.hh:21
cadabra::fierz::fierz
fierz(const Kernel &, Ex &, Ex &)
Definition: fierz.cc:16
cadabra::fierz::apply
virtual result_t apply(iterator &) override
Definition: fierz.cc:123
Algorithm.hh
cadabra::fierz::spin1
iterator spin1
Definition: fierz.hh:20
cadabra::fierz
Definition: fierz.hh:10
cadabra::Kernel
Definition: Kernel.hh:15
cadabra::Indices
Definition: Indices.hh:8
cadabra::fierz::indprop
const Indices * indprop
Definition: fierz.hh:24
cadabra::Spinor
Definition: Spinor.hh:8
cadabra::fierz::spin2
iterator spin2
Definition: fierz.hh:20
cadabra::fierz::gam2
iterator gam2
Definition: fierz.hh:22
cadabra::fierz::spinordim
int spinordim
Definition: fierz.hh:23
cadabra::fierz::can_apply
virtual bool can_apply(iterator) override
Definition: fierz.cc:26
cadabra::Algorithm::iterator
Ex::iterator iterator
Definition: Algorithm.hh:70
cadabra::fierz::prop4
const Spinor * prop4
Definition: fierz.hh:21
cadabra::Algorithm
Definition: Algorithm.hh:59
cadabra
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:83
cadabra::Ex
Definition: Storage.hh:140
cadabra::fierz::spin3
iterator spin3
Definition: fierz.hh:20
cadabra::fierz::spinor_list
Ex spinor_list
Definition: fierz.hh:18
cadabra::fierz::spin4
iterator spin4
Definition: fierz.hh:20
cadabra::fierz::prop1
const Spinor * prop1
Definition: fierz.hh:21
cadabra::fierz::prop2
const Spinor * prop2
Definition: fierz.hh:21
cadabra::Ex::result_t
result_t
Keeping track of what algorithms have done to this expression.
Definition: Storage.hh:159
cadabra::fierz::gam1
iterator gam1
Definition: fierz.hh:22