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:
44  Magnetization(int dimensions, const int* ranges);
45 
56  int dimensions,
57  const int* ranges,
58  const SpinMatrix *data
59  );
60 
67  Magnetization(const IndexTree &indexTree);
68 
78  const IndexTree &indexTree,
79  const SpinMatrix *data
80  );
81 
83 // Magnetization(const Magnetization &magnetization);
84 
86 // Magnetization(Magnetization &&magnetization);
87 
95  Magnetization(const std::string &serialization, Mode mode);
96 
98 // ~Magnetization();
99 
101 // Magnetization& operator=(const Magnetization &magnetization);
102 
104 // Magnetization& operator=(Magnetization &&magnetization);
105 
107  std::string serialize(Mode mode) const;
108 private:
109 };
110 
111 }; //End namespace Property
112 }; //End namespace TBTK
113 
114 #endif
Property container for magnetization.
Definition: Magnetization.h:35
Abstract Property class.
Definition: AbstractProperty.h:95
Data structure for mapping physical indices to linear indices.
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