numerics 0.1.0
Loading...
Searching...
No Matches
num::MCMCProblem Struct Reference

#include <problems.hpp>

Public Attributes

std::function< double(int)> accept_prob
 
std::function< void(int)> propose
 
int n_sites
 

Detailed Description

MCMC sampling problem over n_sites. accept_prob(i) returns the Metropolis acceptance probability for site i. propose(i) applies the proposed move at site i. The spin state is implicit in the lambda captures – the caller owns it.

Definition at line 29 of file problems.hpp.

Member Data Documentation

◆ accept_prob

std::function<double(int)> num::MCMCProblem::accept_prob

Definition at line 30 of file problems.hpp.

Referenced by num::solve().

◆ n_sites

int num::MCMCProblem::n_sites

Definition at line 32 of file problems.hpp.

Referenced by num::solve().

◆ propose

std::function<void(int)> num::MCMCProblem::propose

Definition at line 31 of file problems.hpp.

Referenced by num::solve().


The documentation for this struct was generated from the following file: