Home
last modified time | relevance | path

Searched refs:kEpsilon (Results 1 – 25 of 27) sorted by relevance

12

/external/ceres-solver/internal/ceres/
Dpartitioned_matrix_view_test.cc47 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()
Dpolynomial_test.cc46 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 …]
Diterative_schur_complement_solver_test.cc57 const double kEpsilon = 1e-14; variable
102 if (diff < kEpsilon) { in TestSolver()
107 << " solution by " << diff << " which is more than " << kEpsilon; in TestSolver()
Dimplicit_schur_complement_test.cc53 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()
Ddogleg_strategy_test.cc122 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/
Dscroller_unittest.cc19 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()
Dscroller.cc26 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/
Dpage_zoom.cc13 const double kEpsilon = 0.001; variable
17 return (std::fabs(value_a - value_b) <= kEpsilon); in ZoomValuesEqual()
/external/chromium_org/athena/wm/
Dwindow_overview_mode.cc224 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/
Dtransform.cc28 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/
Djet_traits.h40 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/
Dpage_zoom.h32 CONTENT_EXPORT extern const double kEpsilon;
/external/chromium_org/gpu/command_buffer/tests/
Dgl_readback_unittest.cc147 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/
Drect_unittest.cc895 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()
Drect_base_impl.h345 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/
Dsinc_resampler_unittest.cc131 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/
Dsinc_resampler_unittest.cc141 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/
Dwsola_internals.cc30 const float kEpsilon = 1e-12f; in MultiChannelSimilarityMeasure() local
34 kEpsilon); in MultiChannelSimilarityMeasure()
Daudio_renderer_impl_unittest.cc405 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/
Droot_window_transformers.cc38 const float kEpsilon = 0.001f; in RoundNearZero() local
42 if (std::abs(SkMScalarToFloat(matrix.get(x, y))) < kEpsilon) in RoundNearZero()
Ddisplay_manager.cc93 const float kEpsilon = 0.0001f; in operator ()() local
94 return std::abs(scale - s) < kEpsilon; in operator ()()
/external/chromium_org/content/browser/android/
Dedge_effect.cc42 const float kEpsilon = 0.001f; variable
293 if (t >= 1.f - kEpsilon) { in Update()
Doverscroll_glow.cc22 const float kEpsilon = 1e-3f; variable
75 return std::abs(value) < kEpsilon; in IsApproxZero()
/external/chromium_org/base/metrics/
Dfield_trial.cc55 const double kEpsilon = 1e-8; in GetGroupBoundaryValue() local
57 static_cast<FieldTrial::Probability>(divisor * entropy_value + kEpsilon); in GetGroupBoundaryValue()
/external/chromium_org/cc/trees/
Dlayer_tree_host_impl.cc2444 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()

12