TBTK
Need a break? Support the development by playing Polarity Puzzles
ElectronFluctuationVertex.h
1 /* Copyright 2018 Kristofer Björnson
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
17 
25 #ifndef COM_DAFER45_TBTK_PROPERTY_EXTRACTOR_ELECTRON_FLUCTUATION_VERTEX
26 #define COM_DAFER45_TBTK_PROPERTY_EXTRACTOR_ELECTRON_FLUCTUATION_VERTEX
27 
28 #include "TBTK/Solver/ElectronFluctuationVertex.h"
29 #include "TBTK/Property/InteractionVertex.h"
31 
32 #include <complex>
33 //#include <initializer_list>
34 
35 namespace TBTK{
36 namespace PropertyExtractor{
37 
40 class ElectronFluctuationVertex : public PropertyExtractor{
41 public:
45  ElectronFluctuationVertex(Solver::ElectronFluctuationVertex &solver);
46 
48  virtual void setEnergyWindow(
49  double lowerBound,
50  double upperBound,
51  int resolution
52  );
53 
55  virtual void setEnergyWindow(
56  int lowerFermionicMatsubaraEnergyIndex,
57  int upperFermionicMatsubaraEnergyIndex,
58  int lowerBosonicMatsubaraEnergyIndex,
59  int upperBosonicEnergyIndex
60  );
61 
63  virtual Property::InteractionVertex calculateInteractionVertex(
64  std::vector<Index> patterns
65  );
66 private:
68  static void calculateInteractionVertexCallback(
69  PropertyExtractor *cb_this,
70  Property::Property &property,
71  const Index &index,
72  int offset,
73  Information &information
74  );
75 
77  Solver::ElectronFluctuationVertex *solver;
78 
80  virtual const Solver::Solver& getSolver() const;
81 };
82 
83 inline const Solver::Solver& ElectronFluctuationVertex::getSolver() const{
84  return *solver;
85 }
86 
87 }; //End of namespace PropertyExtractor
88 }; //End of namespace TBTK
89 
90 #endif
91 
Generates IndexTrees to be used as loop ranges and memory layout for Properties in the PropertyExtrac...
Definition: Boolean.h:32