38 *failed = (failed_int != 0);
41 std::cout <<
"Hello from residual_function_wrapper. Here comes x:" << std::endl;
44 std::cout << std::setw(24) << std::setprecision(15) << x[j];
46 std::cout << std::endl;
55 if (verbose>0) std::cout <<
"Hello from Least_squares_solver::record_function_evaluation, the non-override." << std::endl;
56 double objective_value = residuals_to_single_objective(f);
57 current_residuals = f;
58 record_function_evaluation(x, objective_value, failed);
64 if (verbose>0) std::cout <<
"Hello from Least_squares_solver::record_function_evaluation, the override." << std::endl;
68 memcpy(best_residual_function, current_residuals, N_terms *
sizeof(
double));
94 if (verbose > 0) std::cout <<
"Hello from Least_squares_solver::objective_function_wrapper" << std::endl;
97 objective_function(&N_parameters, x, f, &failed_int, problem, user_data);
98 *failed = (failed_int != 0);