file Models/model_helpers.hpp
[No description available]
Namespaces
Name |
---|
Gambit TODO: see if we can use this one: |
Gambit::Models Forward declaration of Models::ModelFunctorClaw class for use in constructors. |
Source code
// GAMBIT: Global and Modular BSM Inference Tool
// *********************************************
//
// Helper functions used in Model definitions
// and translation functions
//
// *********************************************
//
// Authors
// =======
//
// (add name and date if you modify)
//
// Ben Farmer
// 2014 Dec
//
// *********************************************
#ifndef __model_helpers_hpp__
#define __model_helpers_hpp__
#include <vector>
#include "gambit/Utils/model_parameters.hpp"
namespace Gambit
{
namespace Models
{
// Set many string-named ModelParameters to a single value
inline void set_many_to_one(ModelParameters &myP, const std::vector<std::string>& v, const double value)
{
for(std::vector<std::string>::const_iterator it = v.begin(); it != v.end(); ++it)
{
myP.setValue(*it, value);
}
}
}
}
#endif
Updated on 2024-07-18 at 13:53:33 +0000