/external/ceres-solver/internal/ceres/ |
D | partitioned_matrix_view_test.cc | 47 const double kEpsilon = 1e-14; variable 100 EXPECT_NEAR(y1(i), y2(i), kEpsilon); in TEST_F() 120 EXPECT_NEAR(y1(i), y2(i), kEpsilon); in TEST_F() 141 kEpsilon); in TEST_F() 155 EXPECT_NEAR(block_diagonal_ee->values()[0], 10.0, kEpsilon); in TEST_F() 156 EXPECT_NEAR(block_diagonal_ee->values()[1], 155.0, kEpsilon); in TEST_F() 168 EXPECT_NEAR(block_diagonal_ff->values()[0], 70.0, kEpsilon); in TEST_F() 169 EXPECT_NEAR(block_diagonal_ff->values()[1], 17.0, kEpsilon); in TEST_F() 170 EXPECT_NEAR(block_diagonal_ff->values()[2], 37.0, kEpsilon); in TEST_F()
|
D | polynomial_test.cc | 46 const double kEpsilon = 1e-13; variable 142 RunPolynomialTestRealRoots(roots, true, true, kEpsilon); in TEST() 147 RunPolynomialTestRealRoots(roots, true, true, kEpsilon); in TEST() 152 RunPolynomialTestRealRoots(roots, true, true, kEpsilon); in TEST() 157 RunPolynomialTestRealRoots(roots, true, true, kEpsilon); in TEST() 162 RunPolynomialTestRealRoots(roots, true, true, kEpsilon); in TEST() 181 ExpectClose(real(0), 42.42, kEpsilon); in TEST() 182 ExpectClose(real(1), 42.42, kEpsilon); in TEST() 183 ExpectClose(std::abs(imag(0)), 4.2, kEpsilon); in TEST() 184 ExpectClose(std::abs(imag(1)), 4.2, kEpsilon); in TEST() [all …]
|
D | iterative_schur_complement_solver_test.cc | 57 const double kEpsilon = 1e-14; variable 102 if (diff < kEpsilon) { in TestSolver() 107 << " solution by " << diff << " which is more than " << kEpsilon; in TestSolver()
|
D | implicit_schur_complement_test.cc | 53 const double kEpsilon = 1e-14; variable 144 if ((y - z).norm() > kEpsilon) { in TestImplicitSchurComplement() 153 if ((isc.rhs() - rhs).norm() > kEpsilon) { in TestImplicitSchurComplement() 168 if ((sol - reference_solution).norm() > kEpsilon) { in TestImplicitSchurComplement()
|
D | dogleg_strategy_test.cc | 122 const double kEpsilon = std::numeric_limits<double>::epsilon(); variable 148 EXPECT_LE(x_.norm(), options_.initial_radius * (1.0 + 4.0 * kEpsilon)); in TEST_F() 168 EXPECT_LE(x_.norm(), options_.initial_radius * (1.0 + 4.0 * kEpsilon)); in TEST_F()
|
/external/chromium_org/ui/gfx/android/ |
D | scroller_unittest.cc | 19 const float kEpsilon = 1e-3f; variable 84 EXPECT_NEAR(0.f, scroller.GetCurrVelocityX(), kEpsilon); in TEST_F() 85 EXPECT_NEAR(0.f, scroller.GetCurrVelocityY(), kEpsilon); in TEST_F() 156 EXPECT_NEAR(0.f, scroller.GetCurrVelocityX(), kEpsilon); in TEST_F() 157 EXPECT_NEAR(0.f, scroller.GetCurrVelocityY(), kEpsilon); in TEST_F()
|
D | scroller.cc | 26 const float kEpsilon = 1e-5f; variable 29 return std::abs(a - b) < kEpsilon; in ApproxEquals() 411 if (hyp > kEpsilon) { in RecomputeDeltas()
|
/external/chromium_org/content/common/ |
D | page_zoom.cc | 13 const double kEpsilon = 0.001; variable 17 return (std::fabs(value_a - value_b) <= kEpsilon); in ZoomValuesEqual()
|
/external/chromium_org/athena/wm/ |
D | window_overview_mode.cc | 224 const float kEpsilon = 1e-3f; in DoScroll() local 231 delta_y_p > kEpsilon && iter != windows.end(); in DoScroll() 235 if (state->progress > kEpsilon) { in DoScroll() 247 delta_y_p > kEpsilon && iter != windows.rend(); in DoScroll() 251 if (1.f - state->progress > kEpsilon) { in DoScroll()
|
/external/chromium_org/ui/gfx/ |
D | transform.cc | 28 const SkMScalar kEpsilon = 1e-8f; variable 275 if (std::abs(determinant) <= kEpsilon) in IsBackFaceVisible() 349 if (std::abs(matrix_.get(0, 0)) > kEpsilon) { in Preserves2dAxisAlignment() 354 if (std::abs(matrix_.get(0, 1)) > kEpsilon) { in Preserves2dAxisAlignment() 359 if (std::abs(matrix_.get(1, 0)) > kEpsilon) { in Preserves2dAxisAlignment() 364 if (std::abs(matrix_.get(1, 1)) > kEpsilon) { in Preserves2dAxisAlignment()
|
/external/ceres-solver/google3/ |
D | jet_traits.h | 40 static const Type kEpsilon; 75 …eres::Jet<T, N> MathLimits<ceres::Jet<T, N> >::kEpsilon = ceres::Jet<T, N>(MathLimits<T>::…
|
/external/chromium_org/content/public/common/ |
D | page_zoom.h | 32 CONTENT_EXPORT extern const double kEpsilon;
|
/external/chromium_org/gpu/command_buffer/tests/ |
D | gl_readback_unittest.cc | 147 const GLfloat kEpsilon = 0.01f; in TEST_F() local 289 std::abs(kDrawColor[kk] * kEpsilon)); in TEST_F() 305 std::abs(kDrawColor[kk] * kEpsilon)); in TEST_F()
|
/external/chromium_org/ui/gfx/geometry/ |
D | rect_unittest.cc | 895 static const float kEpsilon = std::numeric_limits<float>::epsilon(); in TEST() local 900 kEpsilon, in TEST() 902 EXPECT_FLOAT_EQ(2.0f * kEpsilon, in TEST() 906 1.0f + kEpsilon, in TEST() 908 EXPECT_FLOAT_EQ(2.0f + 2.0f * kEpsilon, in TEST() 912 433.0f + 2.0f * kEpsilon, in TEST() 918 0.1f + kEpsilon, in TEST() 921 kEpsilon, in TEST()
|
D | rect_base_impl.h | 345 static const Type kEpsilon = std::numeric_limits<Type>::is_integer in ManhattanInternalDistance() local 349 Type x = std::max<Type>(0, c.width() - width() - rect.width() + kEpsilon); in ManhattanInternalDistance() 350 Type y = std::max<Type>(0, c.height() - height() - rect.height() + kEpsilon); in ManhattanInternalDistance()
|
/external/chromium_org/media/base/ |
D | sinc_resampler_unittest.cc | 131 static const double kEpsilon = 0.00000005; in TEST() local 141 EXPECT_NEAR(result2, result, kEpsilon); in TEST() 150 EXPECT_NEAR(result2, result, kEpsilon); in TEST()
|
/external/chromium_org/third_party/webrtc/common_audio/resampler/ |
D | sinc_resampler_unittest.cc | 141 static const double kEpsilon = 0.00000005; in TEST() local 151 EXPECT_NEAR(result2, result, kEpsilon); in TEST() 160 EXPECT_NEAR(result2, result, kEpsilon); in TEST()
|
/external/chromium_org/media/filters/ |
D | wsola_internals.cc | 30 const float kEpsilon = 1e-12f; in MultiChannelSimilarityMeasure() local 34 kEpsilon); in MultiChannelSimilarityMeasure()
|
D | audio_renderer_impl_unittest.cc | 405 const float kEpsilon = 0.20 * (total_frames / playback_rate); in EndOfStreamTest() local 406 EXPECT_NEAR(frames_filled, total_frames / playback_rate, kEpsilon); in EndOfStreamTest()
|
/external/chromium_org/ash/display/ |
D | root_window_transformers.cc | 38 const float kEpsilon = 0.001f; in RoundNearZero() local 42 if (std::abs(SkMScalarToFloat(matrix.get(x, y))) < kEpsilon) in RoundNearZero()
|
D | display_manager.cc | 93 const float kEpsilon = 0.0001f; in operator ()() local 94 return std::abs(scale - s) < kEpsilon; in operator ()()
|
/external/chromium_org/content/browser/android/ |
D | edge_effect.cc | 42 const float kEpsilon = 0.001f; variable 293 if (t >= 1.f - kEpsilon) { in Update()
|
D | overscroll_glow.cc | 22 const float kEpsilon = 1e-3f; variable 75 return std::abs(value) < kEpsilon; in IsApproxZero()
|
/external/chromium_org/base/metrics/ |
D | field_trial.cc | 55 const double kEpsilon = 1e-8; in GetGroupBoundaryValue() local 57 static_cast<FieldTrial::Probability>(divisor * entropy_value + kEpsilon); in GetGroupBoundaryValue()
|
/external/chromium_org/cc/trees/ |
D | layer_tree_host_impl.cc | 2444 const float kEpsilon = 0.1f; in ScrollBy() local 2447 if (std::abs(unused_root_delta.x()) < kEpsilon) in ScrollBy() 2449 if (std::abs(unused_root_delta.y()) < kEpsilon) in ScrollBy() 2453 if (std::abs(active_tree_->TotalMaxScrollOffset().x()) <= kEpsilon) in ScrollBy() 2455 if (std::abs(active_tree_->TotalMaxScrollOffset().y()) <= kEpsilon) in ScrollBy() 2461 bool did_move_layer_x = std::abs(applied_delta.x()) > kEpsilon; in ScrollBy() 2462 bool did_move_layer_y = std::abs(applied_delta.y()) > kEpsilon; in ScrollBy()
|