Home | History | Annotate | Download | only in ceres

Lines Matching refs:x1

196 //   f1 = x1 + 10*x2;
199 // f4 = sqrt(10) * (x1 - x4)^2
201 // The starting values are x1 = 3, x2 = -1, x3 = 0, x4 = 1.
202 // The minimum is 0 at (x1, x2, x3, x4) = 0.
235 template <typename T> bool operator()(const T* const x1,
238 // f1 = x1 + 10 * x2;
239 *residual = *x1 + T(10.0) * *x2;
268 template <typename T> bool operator()(const T* const x1,
271 // f4 = sqrt(10) (x1 - x4)^2
272 residual[0] = T(sqrt(10.0)) * (x1[0] - x4[0]) * (x1[0] - x4[0]);