Home
last modified time | relevance | path

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

/external/ceres-solver/internal/ceres/
Dblas_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 …]
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 …]
Djet_quaternion_integration_test.cc99 double const kTolerance = 1e-13; variable
102 ExpectClose(x.a, y.a, kTolerance); in ExpectJetsClose()
103 ExpectClose(x.v[0], y.v[0], kTolerance); in ExpectJetsClose()
104 ExpectClose(x.v[1], y.v[1], kTolerance); in ExpectJetsClose()
105 ExpectClose(x.v[2], y.v[2], kTolerance); in ExpectJetsClose()
106 ExpectClose(x.v[3], y.v[3], kTolerance); in ExpectJetsClose()
195 ExpectClose(yp[0], y[0], kTolerance); in TEST_F()
196 ExpectClose(yp[1], y[1], kTolerance); in TEST_F()
197 ExpectClose(yp[2], y[2], kTolerance); in TEST_F()
Dblock_random_access_crs_matrix_test.cc95 double kTolerance = 1e-14; in TEST() local
100 kTolerance); in TEST()
104 kTolerance); in TEST()
108 kTolerance); in TEST()
112 kTolerance); in TEST()
116 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) {
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
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()
Dautodiff_local_parameterization_test.cc107 const double kTolerance = 1e-14; in QuaternionParameterizationTestHelper() local
123 EXPECT_NEAR(x_plus_delta[i], x_plus_delta_ref[i], kTolerance); in QuaternionParameterizationTestHelper()
132 EXPECT_NEAR(x_plus_delta_norm, 1.0, kTolerance); in QuaternionParameterizationTestHelper()
136 EXPECT_NEAR(jacobian[i], jacobian_ref[i], kTolerance) in QuaternionParameterizationTestHelper()
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()
Dlevenberg_marquardt_strategy_test.cc50 const double kTolerance = 1e-16; variable
71 EXPECT_NEAR(per_solve_options.D[i], diagonal_[i], kTolerance) in SolveImpl()
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()
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()
/external/chromium_org/third_party/libjingle/source/talk/base/
Dprofiler_unittest.cc36 const double kTolerance = 0.1; variable
56 EXPECT_NEAR(kWaitSec, event->mean(), kTolerance); in TEST()
61 EXPECT_NEAR(kWaitSec, event->mean(), kTolerance); in TEST()
62 EXPECT_NEAR(kWaitSec * 2, event->total_time(), kTolerance * 2); in TEST()
86 EXPECT_NEAR(kWaitSec, event1->mean(), kTolerance); in TEST()
98 EXPECT_NEAR(kEvent2WaitSec, event2->mean(), kTolerance); in TEST()
110 EXPECT_NEAR(kWaitSec, event1->mean(), kTolerance); in TEST()
111 EXPECT_NEAR(kWaitSec * 2, event1->total_time(), kTolerance * 2); in TEST()
/external/chromium_org/media/filters/
Daudio_renderer_algorithm_unittest.cc262 const float kTolerance = 0.000001f; in WsolaTest() local
288 pulse_ch[k], kTolerance) << " loop " << n in WsolaTest()
/external/chromium_org/third_party/skia/src/gpu/
DGrPathUtils.cpp534 static const SkScalar kTolerance = SK_Scalar1; in convertCubicToQuads() local
535 const SkScalar tolSqd = SkScalarSquare(SkScalarMul(tolScale, kTolerance)); in convertCubicToQuads()
/external/skia/src/gpu/
DGrPathUtils.cpp534 static const SkScalar kTolerance = SK_Scalar1; in convertCubicToQuads() local
535 const SkScalar tolSqd = SkScalarSquare(SkScalarMul(tolScale, kTolerance)); in convertCubicToQuads()
/external/chromium_org/cc/animation/
Dtransform_operations_unittest.cc1050 static const float kTolerance = 1e-2f; in EmpiricallyTestBounds() local
1051 ExpectBoxesApproximatelyEqual(empirical_bounds, bounds, kTolerance); in EmpiricallyTestBounds()