Home
last modified time | relevance | path

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

/external/ceres-solver/internal/ceres/
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) {
646 return absdiff <= kTolerance; in IsClose()
649 return reldiff <= kTolerance; in IsClose()
824 ExpectArraysClose(9, Q[0], Rq[0], kTolerance); in TEST()
[all …]
Ddogleg_strategy_test.cc120 const double kTolerance = 1e-14; variable
216 EXPECT_NEAR(basis.col(0).norm(), 1.0, kTolerance); in TEST_F()
217 EXPECT_NEAR(basis.col(1).norm(), 1.0, kTolerance); in TEST_F()
218 EXPECT_NEAR(basis.col(0).dot(basis.col(1)), 0.0, kTolerance); in TEST_F()
224 kTolerance); in TEST_F()
230 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()
Dlevenberg_marquardt_strategy_test.cc50 const double kTolerance = 1e-16; variable
71 EXPECT_NEAR(per_solve_options.D[i], diagonal_[i], kTolerance) in SolveImpl()
Dvisibility_based_preconditioner_test.cc59 static const double kTolerance = 1e-12; variable
165 if (diff > kTolerance) { in PreconditionerValuesMatch()
300 EXPECT_NEAR(max_relative_difference, 0.0, kTolerance); in TEST_F()
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) << "i: " << i; in TEST()
/external/skia/src/gpu/
DGrPathUtils.cpp471 static const SkScalar kTolerance = SK_Scalar1; in convertCubicToQuads() local
472 const SkScalar tolSqd = SkScalarSquare(SkScalarMul(tolScale, kTolerance)); in convertCubicToQuads()