Class model::BlumeCapel
Inherited Members
Methods
get_identifier()
Returns the identifier string of the model type (e.g., "ising").
Declaration
std::string model::BlumeCapel::get_identifier() const override
get_version()
Returns the version of the input format this implementation expects.
Declaration
std::string model::BlumeCapel::get_version() const override
cost_term()
Declaration
double model::BlumeCapel::cost_term(const State_T&state, size_t j) const
cost_term()
Declaration
double model::BlumeCapel::cost_term(const State_T&state, size_t j, size_t modified_spin, int modified_value) const
calculate_cost()
Declaration
double model::BlumeCapel::calculate_cost(const State_T&state) const override
calculate_cost_difference()
Declaration
double model::BlumeCapel::calculate_cost_difference(const State_T&state, const Transition_T&transition) const override
get_random_state()
Return a valid random state for the model.
The various algorithms don't know how to initialize a valid state; this allows them to start with a random one. NOTE: The rng
being passed should be used for randomness (as opposed to creating one for the model), as multiple threads can potentially use the same underlying model (albeit with separate rngs).
Declaration
BlumeCapel::State_T model::BlumeCapel::get_random_state(utils::RandomGenerator&rng) const override
get_random_transition()
Declaration
BlumeCapel::Transition_T model::BlumeCapel::get_random_transition(const State_T&state, utils::RandomGenerator&rng) const override
apply_transition()
Declaration
void model::BlumeCapel::apply_transition(const Transition_T&transition, State_T&state) const override
configure()
Populates model internals from the input json.
Declaration
void model::BlumeCapel::configure(const utils::Json&json) override
configure()
Declaration
void model::BlumeCapel::configure(Graph::Configuration_T&configuration)
render_state()
Declaration
utils::Structure model::BlumeCapel::render_state(const State_T&state) const override
state_memory_estimate()
Declaration
size_t model::BlumeCapel::state_memory_estimate() const override
state_only_memory_estimate()
Declaration
size_t model::BlumeCapel::state_only_memory_estimate() const override