Documentation of MARTY
A Modern ARtificial Theoretical phYsicist
fermionOrder.h
Go to the documentation of this file.
1 // This file is part of MARTY.
2 //
3 // MARTY is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, either version 3 of the License, or
6 // (at your option) any later version.
7 //
8 // MARTY is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with MARTY. If not, see <https://www.gnu.org/licenses/>.
15 
23 #pragma once
24 
25 #include <vector>
26 
27 namespace csl { class Expr; }
28 
29 namespace mty {
30 
31  class Insertion;
32  class QuantumField;
33 
34  bool ordered(
35  mty::Insertion const &left,
36  mty::Insertion const &right
37  );
38 
39  std::vector<mty::Insertion const*> fermionsOf(
40  std::vector<mty::Insertion> const &fields
41  );
42 
43  std::vector<mty::Insertion*> fermionsOf(
44  std::vector<mty::Insertion> &fields
45  );
46 
47  std::vector<int> defaultFermionOrder(
48  std::vector<mty::Insertion const*> const &fields
49  );
50 
51  inline std::vector<int> defaultFermionOrder(
52  std::vector<mty::Insertion> const &fields
53  )
54  {
55  return defaultFermionOrder(fermionsOf(fields));
56  }
57 
58  void applyFermionOrder(
59  std::vector<mty::Insertion> &insertions,
60  std::vector<int> const &order
61  );
62 
63  void applyDefaultFermionOrder(std::vector<mty::Insertion> &insertions);
64 
65 }
Namespace of MARTY.
Definition: 2HDM.h:31
Definition: insertion.h:33