Searched defs:tolerance (Results 1 - 22 of 22) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/core/tests/
H A DLayoutUnit.cpp68 const float tolerance = 1.0f / kFixedPointDenominator; local
71 ASSERT_NEAR(LayoutUnit(1.1f).toFloat(), 1.1f, tolerance);
72 ASSERT_NEAR(LayoutUnit(1.33f).toFloat(), 1.33f, tolerance);
73 ASSERT_NEAR(LayoutUnit(1.3333f).toFloat(), 1.3333f, tolerance);
74 ASSERT_NEAR(LayoutUnit(1.53434f).toFloat(), 1.53434f, tolerance);
75 ASSERT_NEAR(LayoutUnit(345634).toFloat(), 345634.0f, tolerance);
76 ASSERT_NEAR(LayoutUnit(345634.12335f).toFloat(), 345634.12335f, tolerance);
77 ASSERT_NEAR(LayoutUnit(-345634.12335f).toFloat(), -345634.12335f, tolerance);
78 ASSERT_NEAR(LayoutUnit(-345634).toFloat(), -345634.0f, tolerance);
/external/ceres-solver/internal/ceres/
H A Dincomplete_lq_factorization_test.cc44 const double tolerance) {
53 EXPECT_NEAR(expected.values()[i], actual.values()[i], tolerance);
42 ExpectMatricesAreEqual(const CompressedRowSparseMatrix& expected, const CompressedRowSparseMatrix& actual, const double tolerance) argument
H A Dnumeric_diff_test_utils.cc78 const double tolerance = (method == CENTRAL)? 3e-9 : 2e-5; local
81 ExpectClose(x2[i], dydx1[5 * 0 + i], tolerance); // y1
82 ExpectClose(x1[i], dydx2[5 * 0 + i], tolerance);
83 ExpectClose(2 * x2[i] * residuals[0], dydx1[5 * 1 + i], tolerance); // y2
84 ExpectClose(2 * x1[i] * residuals[0], dydx2[5 * 1 + i], tolerance);
85 ExpectClose(0.0, dydx1[5 * 2 + i], tolerance); // y3
86 ExpectClose(2 * x2[i], dydx2[5 * 2 + i], tolerance);
148 const double tolerance = (method == CENTRAL)? 3e-9 : 2e-5; local
151 ExpectClose( x2[i] * cos(x1x2), dydx1[5 * 0 + i], tolerance); local
152 ExpectClose( x1[i] * cos(x1x2), dydx2[5 * 0 + i], tolerance); local
[all...]
/external/eigen/Eigen/src/SparseCore/
H A DSparseSparseProductWithPruning.h20 static void sparse_sparse_product_with_pruning_impl(const Lhs& lhs, const Rhs& rhs, ResultType& res, typename ResultType::RealScalar tolerance) argument
70 for (typename AmbiVector<Scalar,Index>::Iterator it(tempVector,tolerance); it; ++it)
88 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, RealScalar tolerance) argument
91 internal::sparse_sparse_product_with_pruning_impl<Lhs,Rhs,ResultType>(lhs, rhs, _res, tolerance);
100 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, RealScalar tolerance) argument
105 internal::sparse_sparse_product_with_pruning_impl<Lhs,Rhs,SparseTemporaryType>(lhs, rhs, _res, tolerance);
114 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, RealScalar tolerance) argument
118 internal::sparse_sparse_product_with_pruning_impl<Rhs,Lhs,ResultType>(rhs, lhs, _res, tolerance);
127 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, RealScalar tolerance) argument
132 internal::sparse_sparse_product_with_pruning_impl<ColMajorMatrix,ColMajorMatrix,ResultType>(colLhs, colRhs, res, tolerance);
[all...]
H A DSparseProduct.h102 EIGEN_STRONG_INLINE SparseSparseProduct(const Lhs& lhs, const Rhs& rhs, RealScalar tolerance) argument
103 : m_lhs(lhs), m_rhs(rhs), m_tolerance(tolerance), m_conservative(false)
/external/eigen/test/eigen2/
H A Deigen2_regression.cpp54 typename VectorType::Scalar tolerance)
61 VERIFY(ei_abs(error) < ei_abs(tolerance));
69 typename VectorType::Scalar tolerance)
76 std::cout << ei_abs(error) << " xxx " << ei_abs(tolerance) << std::endl;
77 VERIFY(ei_abs(error) < ei_abs(tolerance));
51 check_linearRegression(int numPoints, VectorType **points, const VectorType& original, typename VectorType::Scalar tolerance) argument
66 check_fitHyperplane(int numPoints, VectorType **points, const HyperplaneType& original, typename VectorType::Scalar tolerance) argument
/external/chromium_org/third_party/skia/src/effects/
H A DSkAvoidXfermode.cpp13 SkAvoidXfermode::SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode) { argument
14 if (tolerance > 255) {
15 tolerance = 255;
19 fDistMul = (256 << 14) / (tolerance + 1);
/external/skia/src/effects/
H A DSkAvoidXfermode.cpp13 SkAvoidXfermode::SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode) { argument
14 if (tolerance > 255) {
15 tolerance = 255;
19 fDistMul = (256 << 14) / (tolerance + 1);
/external/eigen/Eigen/src/IterativeLinearSolvers/
H A DIterativeSolverBase.h119 /** \returns the tolerance threshold used by the stopping criteria */
120 RealScalar tolerance() const { return m_tolerance; } function in class:Eigen::IterativeSolverBase
122 /** Sets the tolerance threshold used by the stopping criteria */
123 Derived& setTolerance(RealScalar tolerance) argument
125 m_tolerance = tolerance;
155 /** \returns the tolerance error reached during the last solve */
/external/chromium_org/gpu/command_buffer/tests/
H A Dgl_test_utils.cc130 GLint x, GLint y, GLsizei width, GLsizei height, GLint tolerance,
145 if (diff > tolerance) {
129 CheckPixels( GLint x, GLint y, GLsizei width, GLsizei height, GLint tolerance, const uint8* color) argument
/external/eigen/Eigen/src/Cholesky/
H A DLDLT.h501 RealScalar tolerance = (max)(vectorD.array().abs().maxCoeff() * NumTraits<Scalar>::epsilon(), local
504 if(abs(vectorD(i)) > tolerance)
/external/skia/tests/
H A DMatrix44Test.cpp12 const double tolerance = 1e-7; local
16 return diff <= tolerance;
23 const SkScalar tolerance = SK_Scalar1 / 200000; local
25 const SkScalar tolerance = SK_Scalar1 / 1024;
28 return SkTAbs<SkMScalar>(a - b) <= tolerance;
H A DMatrixTest.cpp18 const SkScalar tolerance = SK_Scalar1 / 200000; local
20 const SkScalar tolerance = SK_Scalar1 / 1024;
23 return SkScalarAbs(a - b) <= tolerance;
296 * issue, i.e. the way we use tolerance in isSimilarityTransformation
351 SkScalar tolerance = SK_ScalarNearlyZero) {
354 if (diff < tolerance) {
362 if (diff <= largest*tolerance) {
/external/kernel-headers/original/linux/
H A Dcompat.h56 compat_long_t tolerance; member in struct:compat_timex
H A Dtimex.h87 * offset and maximum frequency tolerance.
115 long tolerance; /* clock frequency tolerance (ppm) member in struct:timex
211 extern long time_tolerance; /* frequency tolerance (ppm) */
/external/strace/
H A Dtime.c571 int tolerance; member in struct:__anon26176
595 tprintf("tolerance=%d, time=", tx.tolerance);
627 tprintf("tolerance=%ld, time=", tx.tolerance);
638 tprintf("tolerance=%ld, time=", tx.tolerance);
/external/chromium_org/third_party/qcms/src/
H A Diccread.c260 float sum[3], target[3], tolerance[3]; local
310 // Our tolerance vector - Recommended by Chris Murphy based on
314 tolerance[0] = 0.02;
315 tolerance[1] = 0.02;
316 tolerance[2] = 0.04;
322 // Compare with our tolerance
324 if (!(((sum[i] - tolerance[i]) <= target[i]) &&
325 ((sum[i] + tolerance[i]) >= target[i])))
/external/chromium_org/net/url_request/
H A Durl_request_unittest.cc3313 int tolerance = upper_bound * 0.005; local
3314 if (tolerance < 2)
3315 tolerance = 2;
3318 // within the desired tolerance.
3319 while (upper_bound - lower_bound >= tolerance) {
/external/valgrind/main/include/vki/
H A Dvki-linux.h309 long tolerance; /* clock frequency tolerance (ppm) member in struct:vki_timex
/external/droiddriver/libs/
H A Dguava-13.0.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/hash/ ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dorg.eclipse.swt.gtk.linux.x86_3.6.1.v3657a.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/closure/
H A Dcompiler.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/debugging/ com/google/debugging/sourcemap/ ...

Completed in 470 milliseconds