Parameters
-
class Parameter
Values that appear as mutable constants in expressions.
Mutable parameters are used to define coefficients and constant terms can be changed without reconstructing the expression.
Stream operator
Stream the parameter to an output stream.
- param ostr:
output stream
- param arg:
parameter
Public Functions
-
explicit Parameter(const std::string &name)
Constructs a Parameter initialized with a given value and a name.
- Parameters:
value – the initial value of the parameter
name – the name of the parameter
-
Parameter(const ParameterRepn &_repn)
Copy constructor
- Parameters:
arg – a parameter whose value is shared
-
double value() const
- Returns:
the value of the parameter
-
Parameter &value(const Expression &value)
Set the parameter value.
- Returns:
the parameter object.
-
Expression value_expression() const
- Returns:
the expression defining the parameter value
-
std::string name() const
- Returns:
the name of the parameter
-
inline bool is_constant() const
- Returns:
false
because this is not a contant