TBTK
Need a break? Support the development by playing
Polarity Puzzles
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
44
class
Magnetization
:
public
AbstractProperty
<SpinMatrix>{
45
public
:
52
Magnetization
(
const
std::vector<int> &ranges);
53
62
Magnetization
(
const
std::vector<int> &ranges,
const
SpinMatrix
*data);
63
70
Magnetization
(
const
IndexTree
&indexTree);
71
80
Magnetization
(
81
const
IndexTree
&indexTree,
82
const
SpinMatrix
*data
83
);
84
92
Magnetization
(
const
std::string &serialization,
Mode
mode);
93
95
std::string
serialize
(
Mode
mode)
const
;
96
private
:
97
};
98
99
};
//End namespace Property
100
};
//End namespace TBTK
101
102
#endif
TBTK::Property::Magnetization::Magnetization
Magnetization(const std::vector< int > &ranges)
TBTK::Property::Magnetization::serialize
std::string serialize(Mode mode) const
TBTK::IndexTree
Data structure for mapping physical indices to linear indices.
Definition:
IndexTree.h:35
TBTK::Property::AbstractProperty
Abstract Property class.
Definition:
AbstractProperty.h:101
TBTK::Serializable::Mode
Mode
Definition:
Serializable.h:47
TBTK::SpinMatrix
Matrix containing information about a spin.
Definition:
SpinMatrix.h:82
TBTK::Property::Magnetization
Property container for magnetization.
Definition:
Magnetization.h:44
TBTK
Lib
include
TBTK
Property
Magnetization.h
Generated on Sat Jul 27 2024 12:03:36 for TBTK by
1.8.17