Lines Matching defs:residuals
56 double* residuals,
59 residuals[i] = i;
112 double residuals[3];
113 residual_block.Evaluate(true, &cost, residuals, NULL, scratch);
115 EXPECT_EQ(0.0, residuals[0]);
116 EXPECT_EQ(1.0, residuals[1]);
117 EXPECT_EQ(2.0, residuals[2]);
121 VectorRef(residuals, 3).setConstant(0.0);
137 residual_block.Evaluate(true, &cost, residuals, jacobian_ptrs, scratch);
139 EXPECT_EQ(0.0, residuals[0]);
140 EXPECT_EQ(1.0, residuals[1]);
141 EXPECT_EQ(2.0, residuals[2]);
149 VectorRef(residuals, 3).setConstant(0.0);
156 residual_block.Evaluate(true, &cost, residuals, jacobian_ptrs, scratch);
158 EXPECT_EQ(0.0, residuals[0]);
159 EXPECT_EQ(1.0, residuals[1]);
160 EXPECT_EQ(2.0, residuals[2]);
171 double* residuals,
174 residuals[i] = i;
251 double residuals[3];
252 residual_block.Evaluate(true, &cost, residuals, NULL, scratch);
254 EXPECT_EQ(0.0, residuals[0]);
255 EXPECT_EQ(1.0, residuals[1]);
256 EXPECT_EQ(2.0, residuals[2]);
260 VectorRef(residuals, 3).setConstant(0.0);
276 residual_block.Evaluate(true, &cost, residuals, jacobian_ptrs, scratch);
278 EXPECT_EQ(0.0, residuals[0]);
279 EXPECT_EQ(1.0, residuals[1]);
280 EXPECT_EQ(2.0, residuals[2]);
307 VectorRef(residuals, 3).setConstant(0.0);
314 residual_block.Evaluate(true, &cost, residuals, jacobian_ptrs, scratch);
316 EXPECT_EQ(0.0, residuals[0]);
317 EXPECT_EQ(1.0, residuals[1]);
318 EXPECT_EQ(2.0, residuals[2]);