TBTK
Need a break? Support the development by playing Polarity Puzzles
SquareLattice.h
Go to the documentation of this file.
1 /* Copyright 2019 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_MODELS_SQUARE_LATTICE
24 #define COM_DAFER45_TBTK_MODELS_SQUARE_LATTICE
25 
26 #include "TBTK/Model.h"
27 
28 #include <complex>
29 #include <vector>
30 
31 namespace TBTK{
32 namespace Models{
33 
60 class SquareLattice : public Model{
61 public:
72  const Index &size,
73  const std::vector<std::complex<double>> &parameters
74  );
75 private:
77  void createModelWithSpin(
78  const Index &size,
79  const std::vector<std::complex<double>> &parameters
80  );
81 
83  void createModelWithoutSpin(
84  const Index &size,
85  const std::vector<std::complex<double>> &parameters
86  );
87 };
88 
89 }; //End of namespace Models
90 }; //End of namespace TBTK
91 
92 #endif
TBTK::Model
Container of Model related information.
Definition: Model.h:57
Model.h
Container of Model related information.
TBTK::Models::SquareLattice::SquareLattice
SquareLattice(const Index &size, const std::vector< std::complex< double >> &parameters)
TBTK::Index
Physical index.
Definition: Index.h:44
TBTK::Models::SquareLattice
Square lattice model.
Definition: SquareLattice.h:60