Loading [MathJax]/extensions/tex2jax.js
mptensor
v0.3.0
Parallel Library for Tensor Network Methods
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
i
k
l
m
n
o
p
q
r
s
t
u
v
Functions
a
b
c
e
f
i
k
l
m
o
p
q
r
s
t
u
v
Variables
Typedefs
Classes
Class List
Class Index
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Functions
a
b
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
Variables
Typedefs
Related Functions
Files
File List
File Members
All
c
d
e
f
i
l
m
n
o
p
s
z
Functions
c
d
e
f
i
l
m
n
o
p
s
z
Variables
Typedefs
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Macros
Modules
Pages
ising.hpp
Go to the documentation of this file.
1
/*
2
mptensor - Parallel Library for Tensor Network Methods
3
4
Copyright 2016 Satoshi Morita
5
6
mptensor is free software: you can redistribute it and/or modify it
7
under the terms of the GNU Lesser General Public License as
8
published by the Free Software Foundation, either version 3 of the
9
License, or (at your option) any later version.
10
11
mptensor is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public
17
License along with mptensor. If not, see
18
<https://www.gnu.org/licenses/>.
19
*/
20
28
#ifndef _ISING_HPP_
29
#define _ISING_HPP_
30
31
#include <cmath>
32
33
namespace
examples
{
34
namespace
Ising_2D {
35
37
const
double
Ising_Tc
= 2.0 / log(1.0 +
sqrt
(2.0));
38
double
exact_free_energy
(
double
temp);
39
40
}
// namespace Ising_2D
41
}
// namespace examples
42
43
#endif
// _ISING_HPP_
mptensor::sqrt
Tensor< Matrix, C > sqrt(Tensor< Matrix, C > t)
Take square-root of each element.
examples::Ising_2D::exact_free_energy
double exact_free_energy(double temp)
Definition:
ising.cc:40
examples::Ising_2D::Ising_Tc
const double Ising_Tc
Tc of the Ising model on the square lattice.
Definition:
ising.hpp:37
examples
Definition:
timer.hpp:33
examples
Ising_2D
ising.hpp
Generated by
1.9.1