/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
D | covariance_matrix_generator_unittest.cc | 28 const float kTolerance = 0.0001f; in TEST() local 41 EXPECT_NEAR(actual_els[0][0].real(), 1.f, kTolerance); in TEST() 42 EXPECT_NEAR(actual_els[0][1].real(), 0.9998f, kTolerance); in TEST() 43 EXPECT_NEAR(actual_els[1][0].real(), 0.9998f, kTolerance); in TEST() 44 EXPECT_NEAR(actual_els[1][1].real(), 1.f, kTolerance); in TEST() 46 EXPECT_NEAR(actual_els[0][0].imag(), 0.f, kTolerance); in TEST() 47 EXPECT_NEAR(actual_els[0][1].imag(), 0.f, kTolerance); in TEST() 48 EXPECT_NEAR(actual_els[1][0].imag(), 0.f, kTolerance); in TEST() 49 EXPECT_NEAR(actual_els[1][1].imag(), 0.f, kTolerance); in TEST() 56 const float kTolerance = 0.0001f; in TEST() local [all …]
|
D | matrix_test_helpers.h | 19 const float kTolerance = 0.001f; variable 53 EXPECT_NEAR(expected_elements[i][j], actual_elements[i][j], kTolerance); in ValidateMatrixEqualityFloat() 70 kTolerance); in ValidateMatrixEqualityComplexFloat() 73 kTolerance); in ValidateMatrixEqualityComplexFloat()
|
/external/ceres-solver/internal/ceres/ |
D | small_blas_test.cc | 40 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 …]
|
D | dynamic_numeric_diff_cost_function_test.cc | 41 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 …]
|
D | autodiff_local_parameterization_test.cc | 91 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()
|
D | block_random_access_diagonal_matrix_test.cc | 94 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()
|
D | block_random_access_sparse_matrix_test.cc | 98 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()
|
D | rotation_test.cc | 56 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 …]
|
D | dogleg_strategy_test.cc | 120 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()
|
D | local_parameterization_test.cc | 160 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()
|
D | jet_test.cc | 61 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()
|
D | cost_function_to_functor_test.cc | 38 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()
|
D | covariance_test.cc | 350 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()
|
D | levenberg_marquardt_strategy_test.cc | 50 const double kTolerance = 1e-16; variable 71 EXPECT_NEAR(per_solve_options.D[i], diagonal_[i], kTolerance) in SolveImpl()
|
D | autodiff_test.cc | 372 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()
|
D | compressed_row_sparse_matrix_test.cc | 496 const double kTolerance = 1e-18; in TEST() local 559 ASSERT_NEAR(diff_norm, 0.0, kTolerance) in TEST()
|
/external/webrtc/webrtc/base/ |
D | profiler_unittest.cc | 19 const double kTolerance = 0.1; variable 40 EXPECT_NEAR(kWaitSec, event->mean(), kTolerance * 3); in TEST() 46 EXPECT_NEAR(kWaitSec, event->mean(), kTolerance); in TEST() 47 EXPECT_NEAR(kWaitSec * 2, event->total_time(), kTolerance * 2); in TEST() 71 EXPECT_NEAR(kWaitSec, event1->mean(), kTolerance); in TEST() 85 EXPECT_NEAR(kEvent2WaitSec, event2->mean(), kTolerance * 4); in TEST() 97 EXPECT_NEAR(kWaitSec, event1->mean(), kTolerance); in TEST() 98 EXPECT_NEAR(kWaitSec * 2, event1->total_time(), kTolerance * 2); in TEST()
|
/external/webrtc/webrtc/modules/audio_processing/transient/ |
D | wpd_node_unittest.cc | 21 static const float kTolerance = 0.0001f; variable 51 EXPECT_NEAR(0.1f, node.data()[0], kTolerance); in TEST() 52 EXPECT_NEAR(0.2f, node.data()[1], kTolerance); in TEST() 53 EXPECT_NEAR(0.18f, node.data()[2], kTolerance); in TEST() 54 EXPECT_NEAR(0.56f, node.data()[3], kTolerance); in TEST() 55 EXPECT_NEAR(0.94f, node.data()[4], kTolerance); in TEST()
|
D | moving_moments_unittest.cc | 18 static const float kTolerance = 0.0001f; variable 55 EXPECT_NEAR(expected_mean[i], output_mean_[i], kTolerance); in CalculateMomentsAndVerify() 56 EXPECT_NEAR(expected_mean_squares[i], output_mean_squares_[i], kTolerance); in CalculateMomentsAndVerify()
|
D | transient_detector_unittest.cc | 83 const float kTolerance = 0.02f; in TEST() local 99 EXPECT_NEAR(file_value, detector_value, kTolerance) << "Frame: " in TEST()
|
D | wpd_tree_unittest.cc | 141 const float kTolerance = 0.03f; in TEST() local 176 EXPECT_NEAR(matlab_buffer[j], node_data[j], kTolerance) in TEST()
|
/external/skia/tests/ |
D | SkColor4fTest.cpp | 18 const float kTolerance = 1.0f / (1 << 20); variable 20 static bool nearly_equal(float a, float b, float tol = kTolerance) { in nearly_equal() 25 static bool nearly_equal(const SkPM4f a, const SkPM4f& b, float tol = kTolerance) { in nearly_equal() 209 const float kTolerance = 1.0f / 255; in compare_procs() local 226 if (!nearly_equal(r4f, r32_4f, kTolerance)) { in compare_procs()
|
D | Float16Test.cpp | 17 const float kTolerance = 1.0f / (1 << (8 + 10)); in eq_within_half_float() local 23 return fabsf(a2 - b2) <= kTolerance; in eq_within_half_float()
|