24 assert_parameter_set_correctly();
34 bool j_computed_before = MAP->jacobean_computed();
36 bool j_computed_after = MAP->jacobean_computed();
45 if( (!j_computed_before) && j_computed_after ) {
46 increment_num_der1_evaluations();
47 J.reference(MAP->weighted_jacobian_aug());
52 increment_num_cost_evaluations();
53 R.reference(MAP->weighted_model_measure_diff_aug());
64 assert_parameter_set_correctly();
73 bool m_computed_before = MAP->model_computed();
75 bool m_computed_after = MAP->model_computed();
83 if( (!m_computed_before) && m_computed_after ) {
84 increment_num_cost_evaluations();
85 R.reference(MAP->weighted_model_measure_diff_aug());
90 increment_num_der1_evaluations();
91 J.reference(MAP->weighted_jacobian_aug());
virtual blitz::Array< double, 1 > residual()
Return the residual of the NLLS problem at the current set point.
The base class for all problem classes that implement a cost function.
virtual blitz::Array< double, 1 > parameters() const
Returns the current parameters.
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
Apply value function to a blitz array.
virtual blitz::Array< double, 2 > jacobian()
Return the Jacobian of the residual of the NLLS problem at the current set point. ...
virtual blitz::Array< double, 1 > parameters() const
Just returns the current values of parameters.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
#define REGISTER_LUA_END()
boost::shared_ptr< MaxAPosteriori > max_a_posteriori()