ReFRACtor
cost_func_diff_state.h
Go to the documentation of this file.
1 #ifndef COST_FUNC_DIFF_STATE_H
2 #define COST_FUNC_DIFF_STATE_H
3 #include <cost_func_state.h>
4 
5 namespace FullPhysics {
6 
7 //-----------------------------------------------------------------------
16 //-----------------------------------------------------------------------
17 
19  public CostFuncState {
20 
21 public:
22 
23 
24 //-----------------------------------------------------------------------
26 //-----------------------------------------------------------------------
27 
29 
30 
31 //-----------------------------------------------------------------------
36 //-----------------------------------------------------------------------
37 
39  { set(s); }
40 
41 
42  virtual ~CostFuncDiffState() {}
43 
44 
45 //-----------------------------------------------------------------------
53 //-----------------------------------------------------------------------
54 
55  virtual void set(const CostFuncDiffState& s);
56 
57 
58 //-----------------------------------------------------------------------
64 //-----------------------------------------------------------------------
65 
66  virtual void clear()
67  { CostFuncState::clear(); G.free(); }
68 
69 
70 //-----------------------------------------------------------------------
72 //-----------------------------------------------------------------------
73 
74  virtual void print(std::ostream& Os) const
75  { Os << "CostFuncDiffState"; }
76 
77 
78 protected:
79 
80  blitz::Array<double, 1> G;
81 
82 };
83 }
84 #endif
CostFuncDiffState(const CostFuncDiffState &s)
Copy constructor.
const Unit s("s", 1.0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0)
The state for a problem that only its cost function is implemented.
CostFuncDiffState()
Default constructor.
blitz::Array< double, 1 > G
The state for a problem with implemented cost function and its gradient.
virtual void print(std::ostream &Os) const
Prints description of object.
virtual void clear()
Deletes data contents.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
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