Minor fixes 1. Typo in c_api.h 2. The stream operator for FunctionSample is now in the ceres::internal namespace. Change-Id: Id927a7a49c47d8903505535749ecca78cd2e83b3
diff --git a/include/ceres/c_api.h b/include/ceres/c_api.h index 8b4eaf5..add68de 100644 --- a/include/ceres/c_api.h +++ b/include/ceres/c_api.h
@@ -47,8 +47,9 @@ /* Equivalent to CostFunction::Evaluate() in the C++ API. * - * The user is may keep private information inside the opaque user_data object. - * The pointer here is the same one passed in the ceres_add_residual_block(). */ + * The user may keep private information inside the opaque user_data object. + * The pointer here is the same one passed in the ceres_add_residual_block(). + */ typedef int (*ceres_cost_function_t)(void* user_data, double** parameters, double* residuals,
diff --git a/internal/ceres/line_search.cc b/internal/ceres/line_search.cc index 2c75d89..5f3c445 100644 --- a/internal/ceres/line_search.cc +++ b/internal/ceres/line_search.cc
@@ -62,6 +62,8 @@ return sample; }; +} // namespace + // Convenience stream operator for pushing FunctionSamples into log messages. std::ostream& operator<<(std::ostream &os, const FunctionSample& sample) { @@ -72,8 +74,6 @@ return os; }; -} // namespace - LineSearch::LineSearch(const LineSearch::Options& options) : options_(options) {}