votca 2026-dev
Loading...
Searching...
No Matches
votca::xtp::LatticeModel::NormalGenerator Class Reference

#include <latticemodel.h>

Public Member Functions

 NormalGenerator (std::uint64_t seed)
double operator() ()

Private Member Functions

double Uniform ()

Private Attributes

std::mt19937_64 engine_
bool has_spare_ = false
double spare_ = 0.0

Detailed Description

Deterministic standard normal numbers (Box-Muller on mt19937_64). std::normal_distribution differs between standard libraries, this does not, so a seed gives the same lattice on every platform.

Definition at line 101 of file latticemodel.h.

Constructor & Destructor Documentation

◆ NormalGenerator()

votca::xtp::LatticeModel::NormalGenerator::NormalGenerator ( std::uint64_t seed)
inlineexplicit

Definition at line 103 of file latticemodel.h.

Member Function Documentation

◆ operator()()

double votca::xtp::LatticeModel::NormalGenerator::operator() ( )

Definition at line 43 of file latticemodel.cc.

◆ Uniform()

double votca::xtp::LatticeModel::NormalGenerator::Uniform ( )
private

Definition at line 38 of file latticemodel.cc.

Member Data Documentation

◆ engine_

std::mt19937_64 votca::xtp::LatticeModel::NormalGenerator::engine_
private

Definition at line 108 of file latticemodel.h.

◆ has_spare_

bool votca::xtp::LatticeModel::NormalGenerator::has_spare_ = false
private

Definition at line 109 of file latticemodel.h.

◆ spare_

double votca::xtp::LatticeModel::NormalGenerator::spare_ = 0.0
private

Definition at line 110 of file latticemodel.h.


The documentation for this class was generated from the following files: