ReFRACtor
nlls_problem_state.h
Go to the documentation of this file.
1 #ifndef NLLS_PROBLEM_STATE_H
2 #define NLLS_PROBLEM_STATE_H
3 #include <problem_state.h>
4 
5 namespace FullPhysics {
6 
7 //-----------------------------------------------------------------------
46 //-----------------------------------------------------------------------
47 
49  virtual public ProblemState {
50 
51 public:
52 
53 
54 //-----------------------------------------------------------------------
56 //-----------------------------------------------------------------------
57 
59 
60 
61 //-----------------------------------------------------------------------
66 //-----------------------------------------------------------------------
67 
69  { set(s); }
70 
71 
72  virtual ~NLLSProblemState() {}
73 
74 
75 //-----------------------------------------------------------------------
83 //-----------------------------------------------------------------------
84 
85  virtual void set(const NLLSProblemState& s);
86 
87 
88 //-----------------------------------------------------------------------
94 //-----------------------------------------------------------------------
95 
96  virtual void clear()
97  { ProblemState::clear(); R.free(); J.free(); }
98 
99 
100 //-----------------------------------------------------------------------
102 //-----------------------------------------------------------------------
103 
104  virtual void print(std::ostream& Os) const
105  { Os << "NLLSProblemState"; }
106 
107 
108 protected:
109 
110  blitz::Array<double, 1> R;
111  blitz::Array<double, 2> J;
112 
113 };
114 }
115 #endif
blitz::Array< double, 1 > R
const Unit s("s", 1.0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0)
NLLSProblemState(const NLLSProblemState &s)
Copy constructor.
The state for a NLLS problem with implemented residual function and its Jacobian. ...
virtual void clear()
Deletes data contents.
virtual void clear()
Deletes data contents.
virtual void print(std::ostream &Os) const
Prints description of object.
NLLSProblemState()
Default constructor.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
The base class for all problem states.
Definition: problem_state.h:51
blitz::Array< double, 2 > J

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