TBTK
GreensFunction.h
Go to the documentation of this file.
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 
23 #ifndef COM_DAFER45_TBTK_PROPERTY_GREENS_FUNCTION
24 #define COM_DAFER45_TBTK_PROPERTY_GREENS_FUNCTION
25 
27 #include "TBTK/TBTKMacros.h"
28 
29 #include <complex>
30 #include <vector>
31 
32 namespace TBTK{
33 namespace Property{
34 
36 class GreensFunction : public EnergyResolvedProperty<std::complex<double>>{
37 public:
39  enum class Type{Advanced, Retarded, Principal, NonPrincipal, Matsubara};
40 
43 
55  const IndexTree &indexTree,
56  Type type,
57  double lowerBound,
58  double upperBound,
59  unsigned int resolution
60  );
61 
74  const IndexTree &indexTree,
75  Type type,
76  double lowerBound,
77  double upperBound,
78  unsigned int resolution,
79  const std::complex<double> *data
80  );
81 
93  const IndexTree &indexTree,
94  int lowerMatsubaraEnergyIndex,
95  int upperMatsubaraEnergyIndex,
96  double fundamentalMatsubaraEnergy
97  );
98 
112  const IndexTree &indexTree,
113  int lowerMatsubaraEnergyIndex,
114  int upperMatsubaraEnergyIndex,
115  double fundamentalMatsubaraEnergy,
116  const std::complex<double> *data
117  );
118 
122  Type getType() const;
123 private:
125  Type type;
126 };
127 
129  return type;
130 }
131 
132 }; //End namespace Property
133 }; //End namespace TBTK
134 
135 #endif
Type
Definition: GreensFunction.h:39
Precompiler macros.
Base class for energy resolved Properties.
Definition: EnergyResolvedProperty.h:37
Type getType() const
Definition: GreensFunction.h:128
Data structure for mapping physical indices to linear indices.
Definition: IndexTree.h:34
Base class for energy resolved Properties.
Definition: ModelFactory.h:35
Property container for the Green&#39;s function.
Definition: GreensFunction.h:36