mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
fix formatting for examples
This is mostly just applying the existing clang format config, except: - Use NOLINT on overlong comment lines. - Wrap some sections in 'clang-format off' / 'clang format on'. - Manually split or join some multi-line strings. Change-Id: Ia1a40eeb92112e12c3a169309afe087af55b2f4f
This commit is contained in:
@@ -35,23 +35,23 @@
|
||||
#include "ceres/cubic_interpolation.h"
|
||||
#include "glog/logging.h"
|
||||
|
||||
using ceres::Grid1D;
|
||||
using ceres::CubicInterpolator;
|
||||
using ceres::AutoDiffCostFunction;
|
||||
using ceres::CostFunction;
|
||||
using ceres::CubicInterpolator;
|
||||
using ceres::Grid1D;
|
||||
using ceres::Problem;
|
||||
using ceres::Solver;
|
||||
using ceres::Solve;
|
||||
using ceres::Solver;
|
||||
|
||||
// A simple cost functor that interfaces an interpolated table of
|
||||
// values with automatic differentiation.
|
||||
struct InterpolatedCostFunctor {
|
||||
explicit InterpolatedCostFunctor(
|
||||
const CubicInterpolator<Grid1D<double> >& interpolator)
|
||||
: interpolator_(interpolator) {
|
||||
}
|
||||
: interpolator_(interpolator) {}
|
||||
|
||||
template<typename T> bool operator()(const T* x, T* residuals) const {
|
||||
template <typename T>
|
||||
bool operator()(const T* x, T* residuals) const {
|
||||
interpolator_.Evaluate(*x, residuals);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user