Struct parameter_set¶
Defined in File parameter_set.hpp
Struct Documentation¶
-
struct parameter_set¶
set of parameters for a model, including dependencies
Public Functions
-
parameter_set()¶
default constructor
constructor from arguments
- Parameters:
_model – [in] backtrace to the lattice model
values – [in] values of the different parameters, as a map
equiv – [in] array of equivalence of parameters : <name of parameter, multipler, name of reference parameter>
-
map<string, double> value_map()¶
returns a map <string, double> providing the value of each parameter
- Returns:
a map <string, double>
sets the value of the parameter and its children
- Parameters:
P – [in] pointer to parameter
v – [in] value to set the parameter to
-
void set_value(const string &name, const double &v)¶
sets the value of the parameter and its children
- Parameters:
name – [in] name of parameter
v – [in] value to set the parameter to
-
void set_multiplier(const string &name, const double &v)¶
sets the multiplier of a dependent parameter (changes its initial value)
- Parameters:
name – [in] name of parameter
v – [in] new value of the multiplier
-
void check_existence(string &S)¶
checks the existence of a parameter name in the parameter_set
- Parameters:
name – [in] name of the parameter
-
void copy_to(vector<double> &x)¶
-
void copy_from(const vector<double> &x)¶
-
void print(ostream &out)¶
Prints parameters to a stream.
- Parameters:
out – [in] output stream
-
bool is_dependent(const string &S)¶
returns true is the parameter named S is dependent
-
void CDMFT_variational_set(const vector<vector<string>> &vars)¶
sets the CDMFT variational parameters to vars
- Parameters:
vars – [in] array of parameter names
Public Members
-
shared_ptr<lattice_model> model¶
backtrace to the model
-
vector<vector<string>> CDMFT_variational¶
list of CDMFT variational parameters (per cluster)
Public Static Attributes
-
static bool parameter_set_defined = false¶
-
parameter_set()¶