Lines Matching refs:residuals
47 double* residuals) const { in operator ()()
48 residuals[0] = residuals[1] = residuals[2] = 0; in operator ()()
50 residuals[0] += x1[i] * x2[i]; in operator ()()
51 residuals[2] += x2[i] * x2[i]; in operator ()()
53 residuals[1] = residuals[0] * residuals[0]; in operator ()()
68 double residuals[3] = {-1e-100, -2e-100, -3e-100 }; in ExpectCostFunctionEvaluationIsNearlyCorrect() local
71 &residuals[0], in ExpectCostFunctionEvaluationIsNearlyCorrect()
74 EXPECT_EQ(residuals[0], 67); in ExpectCostFunctionEvaluationIsNearlyCorrect()
75 EXPECT_EQ(residuals[1], 4489); in ExpectCostFunctionEvaluationIsNearlyCorrect()
76 EXPECT_EQ(residuals[2], 213); in ExpectCostFunctionEvaluationIsNearlyCorrect()
83 ExpectClose(2 * x2[i] * residuals[0], dydx1[5 * 1 + i], tolerance); // y2 in ExpectCostFunctionEvaluationIsNearlyCorrect()
84 ExpectClose(2 * x1[i] * residuals[0], dydx2[5 * 1 + i], tolerance); in ExpectCostFunctionEvaluationIsNearlyCorrect()
92 double* residuals) const { in operator ()()
97 residuals[0] = sin(x1x2); in operator ()()
98 residuals[1] = exp(-x1x2 / 10); in operator ()()
138 double residuals[2]; in ExpectCostFunctionEvaluationIsNearlyCorrect() local
141 &residuals[0], in ExpectCostFunctionEvaluationIsNearlyCorrect()