ReFRACtor
brown_nlls_problem.cc
Go to the documentation of this file.
1 #include "brown_nlls_problem.h"
2 
3 
4 using namespace FullPhysics;
5 using namespace blitz;
6 
7 // See base class for description.
8 Array<double, 1> BrownNLLSProblem::residual()
9 {
10  if(R.size() <= 0) {
11  assert_parameter_set_correctly();
12  increment_num_cost_evaluations();
13  R.resize(residual_size());
14 
15  R = X(0)-1.0e6, X(1)-2.0e-6, X(0)*X(1)-2.0;
16  }
17  return R.copy();
18 }
19 
20 // See base class for description.
21 Array<double, 2> BrownNLLSProblem::jacobian()
22 {
23  if(J.size() <= 0) {
24  assert_parameter_set_correctly();
25  increment_num_der1_evaluations();
26  J.resize(residual_size(), parameter_size());
27 
28  J = 1.0, 0.0,
29  0.0, 1.0,
30  X(1), X(0);
31  }
32  return J.copy();
33 }
virtual blitz::Array< double, 2 > jacobian()
The Jacobian matrix function.
const Unit J("J", N *m)
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.
Definition: doxygen_python.h:1

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