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