#include <ising.h>
|
float | calcEnergy (const Grid< short int > &grid, const dim3 index) final |
| Computes the energy difference, when random_point is flipped.
More...
|
|
void | flip (const dim3 index, Grid< short int > &grid) final |
| Computes the energy difference, when a random point is flipped.
More...
|
|
void | simulate () const override |
|
Definition at line 7 of file ising.h.
◆ SimulationStrategy
◆ Ising()
◆ calcEnergy() [1/2]
float HB::Ising::Ising::calcEnergy |
( |
const Grid< short int > & |
grid | ) |
|
|
finalvirtual |
Computes the overall energy of the entire grid.
Implements HB::Model.
◆ calcEnergy() [2/2]
float HB::Ising::Ising::calcEnergy |
( |
const Grid< short int > & |
grid, |
|
|
const dim3 |
index |
|
) |
| |
|
finalprivatevirtual |
Computes the energy difference, when random_point is flipped.
Implements HB::Model.
◆ calcMagnetization()
float HB::Ising::Ising::calcMagnetization |
( |
const Grid< short int > & |
grid | ) |
|
|
finalvirtual |
Computes the overall magnetization of the entire grid.
Implements HB::Model.
◆ flip()
void HB::Ising::Ising::flip |
( |
const dim3 |
index, |
|
|
Grid< short int > & |
grid |
|
) |
| |
|
finalprivatevirtual |
Computes the energy difference, when a random point is flipped.
Implements HB::Model.
◆ simulate()
void HB::Ising::Ising::simulate |
( |
| ) |
const |
|
inlineoverrideprivatevirtual |
◆ mS
The documentation for this class was generated from the following file: