3 #include <gsl/gsl_vector.h> 4 #include <gsl/gsl_multimin.h> 14 blitz::Array<double, 1> b_x(
GslVector(const_cast<gsl_vector*>(x),
false).blitz_array());
15 double c = cost->
cost_x(b_x);
23 gsl_multimin_function f;
26 f.params = (
void *) cost;
The base class for all problem classes that implement a cost function.
gsl_multimin_function gsl_get_mdm(const FullPhysics::CostFunc *cost)
Contains classes to abstract away details in various Spurr Radiative Transfer software.
This provides thin wrapper around the GNU Scientific Library gsl_vector.
double gsl_mdm_c(const gsl_vector *x, void *data)
virtual int expected_parameter_size() const
Returns the expected size of the parameters.
virtual double cost_x(const blitz::Array< double, 1 > &x)
The cost function with parameters.