Class MEAL::ScalarConstant
-
class ScalarConstant : public MEAL::Scalar
Represents a constant scalar value with no parameters or arguments.
Public Functions
-
ScalarConstant(double value = 0)
Default constructor.
-
const ScalarConstant &operator=(const ScalarConstant &scalar)
Assignment operator.
-
inline void set_value(double val)
Set the value.
-
virtual std::string get_name() const
Return the name of the class.
-
virtual void calculate(double &result, std::vector<double> *gradient)
Return the value.
-
ScalarConstant(double value = 0)