Home | History | Annotate | Download | only in ceres

Lines Matching defs:x2

46                              const double* x2,
50 residuals[0] += x1[i] * x2[i];
51 residuals[2] += x2[i] * x2[i];
61 double x2[] = { 9.0, 9.0, 5.0, 5.0, 1.0 };
62 double *parameters[] = { &x1[0], &x2[0] };
81 ExpectClose(x2[i], dydx1[5 * 0 + i], tolerance); // y1
83 ExpectClose(2 * x2[i] * residuals[0], dydx1[5 * 1 + i], tolerance); // y2
86 ExpectClose(2 * x2[i], dydx2[5 * 2 + i], tolerance);
91 const double* x2,
95 x1x2 += x1[i] * x2[i];
107 double x2[5];
115 { { 1.0, 2.0, 3.0, 1.0, 5.0 }, // Some zeros x2.
121 { { 1.0, 2.0, 3.0, 4.0, 5.0 }, // All zeros x2.
131 double *x2 = &(kTests[k].x2[0]);
132 double *parameters[] = { x1, x2 };
145 x1x2 += x1[i] * x2[i];
151 ExpectClose( x2[i] * cos(x1x2), dydx1[5 * 0 + i], tolerance);
153 ExpectClose(-x2[i] * exp(-x1x2 / 10.) / 10., dydx1[5 * 1 + i], tolerance);