Lines Matching refs:x2
196 // f1 = x1 + 10*x2;
198 // f3 = (x2 - 2*x3)^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.
236 const T* const x2,
238 // f1 = x1 + 10 * x2;
239 *residual = *x1 + T(10.0) * *x2;
257 template <typename T> bool operator()(const T* const x2,
260 // f3 = (x2 - 2 x3)^2
261 residual[0] = (x2[0] - T(2.0) * x4[0]) * (x2[0] - T(2.0) * x4[0]);