ReFRACtor
rosenbrock2_nlls_problem.cc
Go to the documentation of this file.
2 #include "fp_exception.h"
3 
4 
5 using namespace FullPhysics;
6 using namespace blitz;
7 
8 // See base class for description.
10 {
11  if(R.size() <= 0) {
12  assert_parameter_set_correctly();
13  increment_num_cost_evaluations();
14  R.resize(residual_size());
15 
16  R = 10.0*(X(1)-X(0)*X(0)), 1.0-X(0);
17  }
18  return R.copy();
19 }
20 
21 // See base class for description.
23 {
24  if(J.size() <= 0) {
25  assert_parameter_set_correctly();
26  increment_num_der1_evaluations();
27  J.resize(residual_size(), parameter_size());
28 
29  J = -20.0*X(0), 10.0,
30  -1.0, 0.0;
31  }
32  return J.copy();
33 }
const Unit J("J", N *m)
Apply value function to a blitz array.
virtual blitz::Array< double, 2 > jacobian()
The Jacobian matrix function.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
virtual blitz::Array< double, 1 > residual()
The residual vector function.

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:10