numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Quadratic function for test of optimization. More...
#include <num_prob_collect/opt/quadratic_function.h>
Public Types | |
using | value_type = double |
Type of function values. | |
using | variable_type = double |
Type of variables. | |
Public Member Functions | |
void | evaluate_on (double variable) |
Evaluate function value on variable. | |
auto | value () const -> const double & |
Get function value. | |
Private Attributes | |
double | coeff_ {0.5} |
Coefficient. | |
double | value_ {0.0} |
Function value. | |
Quadratic function for test of optimization.
Definition at line 27 of file quadratic_function.h.
using num_prob_collect::opt::quadratic_function::value_type = double |
Type of function values.
Definition at line 32 of file quadratic_function.h.
using num_prob_collect::opt::quadratic_function::variable_type = double |
Type of variables.
Definition at line 30 of file quadratic_function.h.
|
inline |
Evaluate function value on variable.
[in] | variable | Variable. |
Definition at line 39 of file quadratic_function.h.
|
inlinenodiscard |
|
private |
Coefficient.
Definition at line 50 of file quadratic_function.h.
|
private |
Function value.
Definition at line 53 of file quadratic_function.h.