Home
last modified time | relevance | path

Searched refs:kTolerance (Results 1 – 15 of 15) sorted by relevance

/external/ceres-solver/internal/ceres/
Dsmall_blas_test.cc40 const double kTolerance = 1e-16; in TEST() local
73 EXPECT_NEAR((C_plus_ref - C_plus).norm(), 0.0, kTolerance) in TEST()
91 EXPECT_NEAR((C_minus_ref - C_minus).norm(), 0.0, kTolerance) in TEST()
108 EXPECT_NEAR((C_assign_ref - C_assign).norm(), 0.0, kTolerance) in TEST()
123 const double kTolerance = 1e-16; in TEST() local
156 EXPECT_NEAR((C_plus_ref - C_plus).norm(), 0.0, kTolerance) in TEST()
173 EXPECT_NEAR((C_minus_ref - C_minus).norm(), 0.0, kTolerance) in TEST()
190 EXPECT_NEAR((C_assign_ref - C_assign).norm(), 0.0, kTolerance) in TEST()
205 const double kTolerance = 1e-16; in TEST() local
229 EXPECT_NEAR((c_plus_ref - c_plus).norm(), 0.0, kTolerance) in TEST()
[all …]
Ddynamic_numeric_diff_cost_function_test.cc41 const double kTolerance = 1e-6; variable
140 EXPECT_NEAR(-1.0, jacobian_vect[0][2*p * 10 + p], kTolerance); in TEST()
142 EXPECT_NEAR(+1.0, jacobian_vect[0][(2*p+1) * 10 + p], kTolerance); in TEST()
149 EXPECT_NEAR(4 * p - 8, jacobian_vect[0][20 * 10 + p], kTolerance); in TEST()
153 EXPECT_NEAR(0.0, jacobian_vect[0][i], kTolerance); in TEST()
158 EXPECT_NEAR(1.0, jacobian_vect[1][20 * 5 + p], kTolerance); in TEST()
162 EXPECT_NEAR(0.0, jacobian_vect[1][i], kTolerance); in TEST()
208 EXPECT_NEAR(1.0, jacobian_vect[1][20 * 5 + p], kTolerance); in TEST()
257 EXPECT_NEAR(-1.0, jacobian_vect[0][2*p * 10 + p], kTolerance); in TEST()
259 EXPECT_NEAR(+1.0, jacobian_vect[0][(2*p+1) * 10 + p], kTolerance); in TEST()
[all …]
Dautodiff_local_parameterization_test.cc91 const double kTolerance = 1e-14; in TEST() local
101 EXPECT_NEAR(x_plus_delta[0], 1.0, kTolerance); in TEST()
102 EXPECT_NEAR(x_plus_delta[1], 3.2345, kTolerance); in TEST()
103 EXPECT_NEAR(x_plus_delta[2], 5.469, kTolerance); in TEST()
110 EXPECT_NEAR(jacobian[k], (i == j) ? 1.2345 : 0.0, kTolerance); in TEST()
147 const double kTolerance = 1e-14; in QuaternionParameterizationTestHelper() local
163 EXPECT_NEAR(x_plus_delta[i], x_plus_delta_ref[i], kTolerance); in QuaternionParameterizationTestHelper()
172 EXPECT_NEAR(x_plus_delta_norm, 1.0, kTolerance); in QuaternionParameterizationTestHelper()
176 EXPECT_NEAR(jacobian[i], jacobian_ref[i], kTolerance) in QuaternionParameterizationTestHelper()
Dblock_random_access_diagonal_matrix_test.cc94 double kTolerance = 1e-14; in TEST() local
99 kTolerance); in TEST()
104 kTolerance); in TEST()
109 kTolerance); in TEST()
112 EXPECT_NEAR(dense.norm(), sqrt(9.0 + 16. * 16. + 81.0 * 25.), kTolerance); in TEST()
Dblock_random_access_sparse_matrix_test.cc98 double kTolerance = 1e-14; in TEST() local
103 kTolerance); in TEST()
107 kTolerance); in TEST()
111 kTolerance); in TEST()
115 kTolerance); in TEST()
119 kTolerance); in TEST()
Drotation_test.cc56 static double const kTolerance = numeric_limits<double>::epsilon() * 10; variable
72 if (fabs(norm2 - 1.0) > kTolerance) {
94 if (fabs(arg[i] - expected[i]) > kTolerance) {
106 if (fabs(arg[i] + expected[i]) > kTolerance) {
140 if (fabs(arg[i] - expected[i]) > kTolerance) {
165 if (fabs(expected - v) > kTolerance) {
188 if (fabs(arg[i] - expected[i]) > kTolerance) {
681 return absdiff <= kTolerance; in IsClose()
684 return reldiff <= kTolerance; in IsClose()
859 ExpectArraysClose(9, Q[0], Rq[0], kTolerance); in TEST()
[all …]
Ddogleg_strategy_test.cc120 const double kTolerance = 1e-14; variable
213 EXPECT_NEAR(basis.col(0).norm(), 1.0, kTolerance); in TEST_F()
214 EXPECT_NEAR(basis.col(1).norm(), 1.0, kTolerance); in TEST_F()
215 EXPECT_NEAR(basis.col(0).dot(basis.col(1)), 0.0, kTolerance); in TEST_F()
221 kTolerance); in TEST_F()
227 kTolerance); in TEST_F()
Dlocal_parameterization_test.cc160 const double kTolerance = 1e-14; in QuaternionParameterizationTestHelper() local
168 EXPECT_NEAR(x_plus_delta[i], x_plus_delta_ref[i], kTolerance); in QuaternionParameterizationTestHelper()
177 EXPECT_NEAR(x_plus_delta_norm, 1.0, kTolerance); in QuaternionParameterizationTestHelper()
192 EXPECT_NEAR(jacobian[i], jacobian_ref[i], kTolerance) in QuaternionParameterizationTestHelper()
Djet_test.cc61 double const kTolerance = 1e-13; variable
64 ExpectClose(x.a, y.a, kTolerance); in ExpectJetsClose()
65 ExpectClose(x.v[0], y.v[0], kTolerance); in ExpectJetsClose()
66 ExpectClose(x.v[1], y.v[1], kTolerance); in ExpectJetsClose()
Dcost_function_to_functor_test.cc38 const double kTolerance = 1e-18; variable
91 EXPECT_NEAR(residuals[i], actual_residuals[i], kTolerance) in ExpectCostFunctionsAreEqual()
103 EXPECT_NEAR(residuals[i], actual_residuals[i], kTolerance) in ExpectCostFunctionsAreEqual()
108 EXPECT_NEAR(jacobians[i], actual_jacobians[i], kTolerance) in ExpectCostFunctionsAreEqual()
Dcovariance_test.cc350 const double kTolerance = 1e-5; in GetCovarianceBlockAndCompare() local
351 EXPECT_NEAR(diff_norm, 0.0, kTolerance) in GetCovarianceBlockAndCompare()
748 const double kTolerance = 1e-16; in ComputeAndCompare() local
756 EXPECT_NEAR((expected - actual).norm(), 0.0, kTolerance) in ComputeAndCompare()
765 EXPECT_NEAR((expected - actual).norm(), 0.0, kTolerance) in ComputeAndCompare()
Dlevenberg_marquardt_strategy_test.cc50 const double kTolerance = 1e-16; variable
71 EXPECT_NEAR(per_solve_options.D[i], diagonal_[i], kTolerance) in SolveImpl()
Dautodiff_test.cc372 const double kTolerance = 1e-14; in TEST() local
374 EXPECT_NEAR(J_x[2 * i + 0], i * x[1] * x[1], kTolerance) << "i: " << i; in TEST()
375 EXPECT_NEAR(J_x[2 * i + 1], 2 * i * x[0] * x[1], kTolerance) in TEST()
Dcompressed_row_sparse_matrix_test.cc496 const double kTolerance = 1e-18; in TEST() local
559 ASSERT_NEAR(diff_norm, 0.0, kTolerance) in TEST()
/external/skia/src/gpu/
DGrPathUtils.cpp555 static const SkScalar kTolerance = SK_Scalar1; in convertCubicToQuads() local
556 const SkScalar tolSqd = SkScalarSquare(SkScalarMul(tolScale, kTolerance)); in convertCubicToQuads()