MC_HAMR
v0.01
Monte Carlo Simulation Software for Atomistic Models of Magnetic Materials for Heat Assisted Magnetic Recording
|
Base class for the random number generators. More...
#include <mklrand.hpp>
Public Member Functions | |
mkl_randbase () | |
Default constructor. More... | |
~mkl_randbase () | |
Default destructor. More... | |
virtual void | fill () |
Fill the buffer with new random numbers. More... | |
virtual void | change_seed (int seed) |
Change the current random seed. More... | |
void | save (const char *name) |
Save the state of the random number generator. More... | |
void | load (const char *name) |
Load a random number generator state. More... | |
Protected Attributes | |
int | arr_size |
int | curr |
VSLStreamStatePtr | stream |
Base class for the random number generators.
|
inline |
Default constructor.
|
inline |
Default destructor.
|
virtual |
Change the current random seed.
seed | The new seed. |
|
inlinevirtual |
Fill the buffer with new random numbers.
Reimplemented in mkl_lnrand, mkl_irand, and mkl_drand.
|
inline |
Load a random number generator state.
name | The name of the file which the state loaded from. |
|
inline |
Save the state of the random number generator.
name | The name of the file which the state will be saved to. |
|
protected |
|
protected |
|
protected |