1#ifndef PARAM_OPTIMIZER_ADAPTER_H
2#define PARAM_OPTIMIZER_ADAPTER_H
58 void commit(
bool coalesce =
true)
override;
61 void clear()
override;
65 std::shared_ptr<ParamOptimizer> po;
Interface for batched parameter updates and optimization.
Defines the ParamOptimizer class to apply batched updates to parameters.
Block identifier with alias support.
Interface for batched parameter modifications.
Adapter that builds a ParamOptimizer from Parameters instances.
void set_value(const BlockName &block, const LhaID &id, scalar_t v) override
Stage a change of central value for a parameter.
void set_param(const BlockName &block, const LhaID &id, std::shared_ptr< Parameter > p) override
Stage a full replacement of a parameter object.
void commit(bool coalesce=true) override
Commit all staged operations.
void remove(const BlockName &block, const LhaID &id) override
Stage the removal of a parameter.
void clear() override
Clears all currently staged operations without applying them.
Represents an identifier of a LHA element, possibly containing several sub-ids.