mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Fix typos in doc and errors in the demo code.
Change-Id: I237402958ed8747ae438643132fcab90113ac27d
This commit is contained in:
@@ -56,12 +56,12 @@
|
||||
// define the object
|
||||
//
|
||||
// class MyScalarCostFunctor {
|
||||
// MyScalarCostFunctor(double k): k_(k) {}
|
||||
// explicit MyScalarCostFunctor(double k): k_(k) {}
|
||||
//
|
||||
// bool operator()(const double* const x,
|
||||
// const double* const y,
|
||||
// double* residuals) const {
|
||||
// residuals[0] = k_ - x[0] * y[0] + x[1] * y[1];
|
||||
// residuals[0] = k_ - x[0] * y[0] - x[1] * y[1];
|
||||
// return true;
|
||||
// }
|
||||
//
|
||||
@@ -223,7 +223,7 @@ class NumericDiffCostFunction
|
||||
(N0 > 0) + (N1 > 0) + (N2 > 0) + (N3 > 0) + (N4 > 0) +
|
||||
(N5 > 0) + (N6 > 0) + (N7 > 0) + (N8 > 0) + (N9 > 0);
|
||||
|
||||
// Get the function value (residuals) at the the point to evaluate.
|
||||
// Get the function value (residuals) at the point to evaluate.
|
||||
if (!internal::EvaluateImpl<CostFunctor,
|
||||
N0, N1, N2, N3, N4, N5, N6, N7, N8, N9>(
|
||||
functor_.get(),
|
||||
|
||||
Reference in New Issue
Block a user