9 int gsl_sm_lsp_f(
const gsl_vector *x,
void *data, gsl_vector *f)
12 blitz::Array<double, 1> b_x(
GslVector(const_cast<gsl_vector*>(x),
false).blitz_array());
13 blitz::Array<double, 1> b_f(lsp->
residual_x(b_x));
14 gsl_vector_memcpy(f,
GslVector(b_f).gsl());
22 blitz::Array<double, 1> b_x(
GslVector(const_cast<gsl_vector*>(x),
false).blitz_array());
23 blitz::Array<double, 2> b_j(lsp->
jacobian_x(b_x));
24 gsl_matrix_memcpy(j,
GslMatrix(b_j).gsl());
31 gsl_multifit_nlinear_fdf fdf;
37 fdf.params = (
void *) lsp;
gsl_multifit_nlinear_fdf gsl_sm_get_lsp_fdf(const FullPhysics::NLLSProblem *lsp)
This provides thin wrapper around the GNU Scientific Library gsl_matrix.
int gsl_sm_lsp_f(const gsl_vector *x, void *data, gsl_vector *f)
virtual blitz::Array< double, 1 > residual_x(const blitz::Array< double, 1 > &x)
The residual function with parameters.
The base class for the Non-Linear Least Squares problem.
int gsl_sm_lsp_j(const gsl_vector *x, void *data, gsl_matrix *j)
virtual blitz::Array< double, 2 > jacobian_x(const blitz::Array< double, 1 > &x)
The Jacobian function with parameters.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
This provides thin wrapper around the GNU Scientific Library gsl_vector.
virtual int residual_size() const =0
The size of the residual returned by residual()
virtual int expected_parameter_size() const
Returns the expected size of the parameters.