Lines Matching defs:residuals
59 double residuals = sqrt(3.0);
61 double sq_norm = residuals * residuals;
72 residuals * sqrt(kRho[1]) / (1 - kAlpha);
79 c.CorrectJacobian(1.0, 1.0, &residuals, &jacobian);
80 c.CorrectResiduals(1.0, &residuals);
82 ASSERT_NEAR(residuals, kExpectedResidual, 1e-6);
87 double residuals = 0.0;
89 double sq_norm = residuals * residuals;
100 const double kExpectedResidual = residuals * sqrt(kRho[1]);
106 c.CorrectJacobian(1, 1, &residuals, &jacobian);
107 c.CorrectResiduals(1, &residuals);
109 ASSERT_NEAR(residuals, kExpectedResidual, 1e-6);
115 double residuals = sqrt(3.0);
117 double sq_norm = residuals * residuals;
127 residuals * sqrt(kRho[1]) / (1.0 - kAlpha);
135 c.CorrectJacobian(1, 1, &residuals, &jacobian);
136 c.CorrectResiduals(1, &residuals);
138 ASSERT_NEAR(residuals, kExpectedResidual, 1e-6);
146 double residuals[3];
152 VectorRef res(residuals, 3);
154 // Ground truth values of the modified jacobian and residuals.
174 residuals[i] = RandDouble();
199 c.CorrectJacobian(3, 2, residuals, jacobian);
200 c.CorrectResiduals(3, residuals);
214 double residuals[3];
220 VectorRef res(residuals, 3);
222 // Ground truth values of the modified jacobian and residuals.
242 // Zero residuals
260 c.CorrectJacobian(3, 2, residuals, jacobian);
261 c.CorrectResiduals(3, residuals);