11 assert_parameter_set_correctly();
12 increment_num_cost_evaluations();
13 R.resize(residual_size());
15 for(
int i=1; i<=residual_size(); i++)
16 R(i-1) = 2.0 + 2.0*i - (exp(i*X(0)) + exp(i*X(1)));
25 assert_parameter_set_correctly();
26 increment_num_der1_evaluations();
27 J.resize(residual_size(), parameter_size());
29 for(
int i=1; i<=residual_size(); i++) {
30 J(i-1,0) = -i*exp(i*X(0));
J(i-1,1) = -i*exp(i*X(1));
virtual blitz::Array< double, 2 > jacobian()
The Jacobian matrix function.
Apply value function to a blitz array.
virtual blitz::Array< double, 1 > residual()
The residual vector function.
Contains classes to abstract away details in various Spurr Radiative Transfer software.