20 blitz::Array<std::string, 1> sv_names = sv_obj->state_vector_name();
21 blitz::Array<double, 1> dx(solver.
x_update().copy());
22 blitz::Array<double, 1> sv_prev(solver.
x_solution().copy());
25 std::stringstream fit_log;
30 std::stringstream sv_log;
32 << std::setw(SV_PRINT_WIDTH)
34 << std::setw(SV_PRINT_WIDTH)
36 <<
" Name" << std::endl;
37 for(
int sv_idx = 0; sv_idx < sv_prev.rows(); sv_idx++)
38 sv_log << std::setprecision(SV_PRINT_WIDTH-7)
39 << std::setw(SV_PRINT_WIDTH)
41 << std::setw(SV_PRINT_WIDTH)
This is an observer of the ConnorSolver that writes out the state vector values in a nicely formated ...
blitz::Array< double, 1 > x_update() const
void notify_update(const ConnorSolver &solver)
Called when the Observed object is updated.
virtual FitStatistic fit_statistic() const
Return fit results for solution to last problem solved.
#define REGISTER_LUA_CLASS(X)
Apply value function to a blitz array.
void iter_log_add_as_observer(ConnorIterationLog &iter_log, ConnorSolver &solver)
virtual void add_observer(Observer< ConnorSolver > &Obs)
Add an observer.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
#define REGISTER_LUA_END()
virtual blitz::Array< double, 1 > x_solution() const