Lines Matching defs:x1
45 bool EasyFunctor::operator()(const double* x1,
50 residuals[0] += x1[i] * x2[i];
60 double x1[] = { 1.0, 2.0, 3.0, 4.0, 5.0 };
62 double *parameters[] = { &x1[0], &x2[0] };
82 ExpectClose(x1[i], dydx2[5 * 0 + i], tolerance);
84 ExpectClose(2 * x1[i] * residuals[0], dydx2[5 * 1 + i], tolerance);
90 bool TranscendentalFunctor::operator()(const double* x1,
95 x1x2 += x1[i] * x2[i];
106 double x1[5];
112 { { 0.0, 2.0, 3.0, 0.0, 5.0 }, // Some zeros x1.
118 { { 0.0, 0.0, 0.0, 0.0, 0.0 }, // All zeros x1.
130 double *x1 = &(kTests[k].x1[0]);
132 double *parameters[] = { x1, x2 };
145 x1x2 += x1[i] * x2[i];
152 ExpectClose( x1[i] * cos(x1x2), dydx2[5 * 0 + i], tolerance);
154 ExpectClose(-x1[i] * exp(-x1x2 / 10.) / 10., dydx2[5 * 1 + i], tolerance);