ReFRACtor
cost_func_state.h
Go to the documentation of this file.
1 #ifndef COST_FUNC_STATE_H
2 #define COST_FUNC_STATE_H
3 #include <problem_state.h>
4 
5 namespace FullPhysics {
6 
7 //-----------------------------------------------------------------------
15 //-----------------------------------------------------------------------
16 
18  virtual public ProblemState {
19 
20 public:
21 
22 
23 //-----------------------------------------------------------------------
25 //-----------------------------------------------------------------------
26 
28 
29 
30 //-----------------------------------------------------------------------
35 //-----------------------------------------------------------------------
36 
38  { set(s); }
39 
40 
41  virtual ~CostFuncState() {}
42 
43 
44 //-----------------------------------------------------------------------
52 //-----------------------------------------------------------------------
53 
54  virtual void set(const CostFuncState& s);
55 
56 
57 //-----------------------------------------------------------------------
63 //-----------------------------------------------------------------------
64 
65  virtual void clear()
66  { ProblemState::clear(); C.free(); }
67 
68 
69 //-----------------------------------------------------------------------
71 //-----------------------------------------------------------------------
72 
73  virtual void print(std::ostream& Os) const
74  { Os << "CostFuncState"; }
75 
76 
77 protected:
78 
79 //-----------------------------------------------------------------------
88 //-----------------------------------------------------------------------
89  blitz::Array<double, 1> C;
90 
91 };
92 }
93 #endif
const Unit s("s", 1.0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0)
virtual void print(std::ostream &Os) const
Prints description of object.
The state for a problem that only its cost function is implemented.
CostFuncState(const CostFuncState &s)
Copy constructor.
virtual void clear()
Deletes data contents.
blitz::Array< double, 1 > C
A cost function is a scalar function; therefore, its value at a point is also a scalar.
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
CostFuncState()
Default constructor.
virtual void clear()
Deletes data contents.

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