ReFRACtor
cost_func_diff.cc
Go to the documentation of this file.
1 #include <cost_func_diff.h>
2 #include <fp_exception.h>
3 
4 
5 using namespace FullPhysics;
6 using namespace blitz;
7 
8 
9 
10 #ifdef HAVE_LUA
11 #include "register_lua.h"
14 #endif
15 
16 
17 void CostFuncDiff::cost_gradient(double& c, Array<double, 1>& g)
18 {
19  c = cost();
20  g.reference(gradient());
21 }
The base class for all problem classes that implement a cost function.
Definition: cost_func.h:20
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
Definition: register_lua.h:136
virtual void cost_gradient(double &c, blitz::Array< double, 1 > &g)
The cost function and its gradient together.
Apply value function to a blitz array.
The base class for all problem classes that implement a cost function and its gradient.
const Unit g("g", 1e-3 *kg)
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
#define REGISTER_LUA_END()
Definition: register_lua.h:134

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