TBTK
Magnetization.h
Go to the documentation of this file.
1 /* Copyright 2016 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_MAGNETIZATION
24 #define COM_DAFER45_TBTK_MAGNETIZATION
25 
26 #include "TBTK/Property/AbstractProperty.h"
27 #include "TBTK/SpinMatrix.h"
28 
29 #include <complex>
30 
31 namespace TBTK{
32 namespace Property{
33 
35 class Magnetization : public AbstractProperty<SpinMatrix>{
36 public:
38  Magnetization(int dimensions, const int* ranges);
39 
42  int dimensions,
43  const int* ranges,
44  const SpinMatrix *data
45  );
46 
48  Magnetization(const IndexTree &indexTree);
49 
52  const IndexTree &indexTree,
53  const SpinMatrix *data
54  );
55 
57  Magnetization(const Magnetization &magnetization);
58 
60  Magnetization(Magnetization &&magnetization);
61 
64  Magnetization(const std::string &serialization, Mode mode);
65 
68 
70  Magnetization& operator=(const Magnetization &magnetization);
71 
73  Magnetization& operator=(Magnetization &&magnetization);
74 
76  std::string serialize(Mode mode) const;
77 private:
78 };
79 
80 }; //End namespace Property
81 }; //End namespace TBTK
82 
83 #endif
Property container for magnetization.
Definition: Magnetization.h:35
Magnetization & operator=(const Magnetization &magnetization)
Abstract Property class.
Definition: AbstractProperty.h:41
Data structure for mapping physical indices to a linear index.
Definition: IndexTree.h:34
Definition: ModelFactory.h:35
Magnetization(int dimensions, const int *ranges)
std::string serialize(Mode mode) const
Mode
Definition: Serializable.h:44
Definition: SpinMatrix.h:33