/external/eigen/unsupported/test/ |
cxx11_tensor_simple.cpp | 159 Tensor<int, 3> epsilon(3,3,3); 160 epsilon.setZero(); 161 epsilon(0,1,2) = epsilon(2,0,1) = epsilon(1,2,0) = 1; 162 epsilon(2,1,0) = epsilon(0,2,1) = epsilon(1,0,2) = -1; 164 VERIFY_IS_EQUAL((epsilon.size()), 27); 165 VERIFY_IS_EQUAL((epsilon.dimensions()[0]), 3) 297 Tensor<int, 3> epsilon; local [all...] |
/external/skia/src/pathops/ |
SkPathOpsTypes.cpp | 12 static bool arguments_denormalized(float a, float b, int epsilon) { 13 float denormalizedCheck = FLT_EPSILON * epsilon / 2; 19 static bool equal_ulps(float a, float b, int epsilon, int depsilon) { 26 return aBits < bBits + epsilon && bBits < aBits + epsilon; 29 static bool equal_ulps_no_normal_check(float a, float b, int epsilon, int depsilon) { 33 return aBits < bBits + epsilon && bBits < aBits + epsilon; 36 static bool equal_ulps_pin(float a, float b, int epsilon, int depsilon) { 46 return aBits < bBits + epsilon && bBits < aBits + epsilon [all...] |
/external/vulkan-validation-layers/libs/glm/gtx/ |
matrix_query.hpp | 59 GLM_FUNC_DECL bool isNull(detail::tmat2x2<T, P> const & m, T const & epsilon); 64 GLM_FUNC_DECL bool isNull(detail::tmat3x3<T, P> const & m, T const & epsilon); 69 GLM_FUNC_DECL bool isNull(detail::tmat4x4<T, P> const & m, T const & epsilon); 74 GLM_FUNC_DECL bool isIdentity(matType<T, P> const & m, T const & epsilon); 79 GLM_FUNC_DECL bool isNormalized(detail::tmat2x2<T, P> const & m, T const & epsilon); 84 GLM_FUNC_DECL bool isNormalized(detail::tmat3x3<T, P> const & m, T const & epsilon); 89 GLM_FUNC_DECL bool isNormalized(detail::tmat4x4<T, P> const & m, T const & epsilon); 94 GLM_FUNC_DECL bool isOrthogonal(matType<T, P> const & m, T const & epsilon);
|
vector_query.hpp | 58 GLM_FUNC_DECL bool areCollinear(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon); 63 GLM_FUNC_DECL bool areOrthogonal(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon); 68 GLM_FUNC_DECL bool isNormalized(vecType<T, P> const & v, T const & epsilon); 73 GLM_FUNC_DECL bool isNull(vecType<T, P> const & v, T const & epsilon); 78 GLM_FUNC_DECL vecType<bool, P> isCompNull(vecType<T, P> const & v, T const & epsilon); 83 GLM_FUNC_DECL bool areOrthonormal(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);
|
/external/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/ |
epsilon.pass.cpp | 12 // epsilon() 22 assert(std::numeric_limits<T>::epsilon() == expected); 23 assert(std::numeric_limits<const T>::epsilon() == expected); 24 assert(std::numeric_limits<volatile T>::epsilon() == expected); 25 assert(std::numeric_limits<const volatile T>::epsilon() == expected);
|
/external/vulkan-validation-layers/libs/glm/gtc/ |
epsilon.hpp | 24 /// @file glm/gtc/epsilon.hpp 35 /// @brief Comparison functions for a user defined epsilon values. 37 /// <glm/gtc/epsilon.hpp> need to be included to use these functionalities. 56 /// Returns the component-wise comparison of |x - y| < epsilon. 64 T const & epsilon); 66 /// Returns the component-wise comparison of |x - y| < epsilon. 74 genType const & epsilon); 76 /// Returns the component-wise comparison of |x - y| < epsilon. 84 typename genType::value_type const & epsilon); 86 /// Returns the component-wise comparison of |x - y| >= epsilon [all...] |
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/numeric.limits.members/ |
epsilon.pass.cpp | 12 // epsilon() 22 assert(std::numeric_limits<T>::epsilon() == expected); 23 assert(std::numeric_limits<const T>::epsilon() == expected); 24 assert(std::numeric_limits<volatile T>::epsilon() == expected); 25 assert(std::numeric_limits<const volatile T>::epsilon() == expected);
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/language.support/support.limits/limits/numeric.limits.members/ |
epsilon.pass.cpp | 12 // epsilon() 22 assert(std::numeric_limits<T>::epsilon() == expected); 23 assert(std::numeric_limits<const T>::epsilon() == expected); 24 assert(std::numeric_limits<volatile T>::epsilon() == expected); 25 assert(std::numeric_limits<const volatile T>::epsilon() == expected);
|
/art/test/053-wait-some/src/ |
Main.java | 60 long epsilon = delay / 10; local 61 if (epsilon > 50) { 62 epsilon = 50; 65 long min = delay - epsilon; 66 long max = delay + epsilon;
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
PoissonDistributionImpl.java | 70 private double epsilon = DEFAULT_EPSILON; field in class:PoissonDistributionImpl 88 * @param epsilon the convergence criteria for cumulative probabilites 92 public PoissonDistributionImpl(double p, double epsilon, int maxIterations) { 94 this.epsilon = epsilon; 102 * @param epsilon the convergence criteria for cumulative probabilites 105 public PoissonDistributionImpl(double p, double epsilon) { 107 this.epsilon = epsilon; 219 return Gamma.regularizedGammaQ((double) x + 1, mean, epsilon, maxIterations) [all...] |
/external/eigen/test/ |
bicgstab.cpp | 20 bicgstab_colmajor_diag.setTolerance(NumTraits<T>::epsilon()*4); 21 bicgstab_colmajor_ilut.setTolerance(NumTraits<T>::epsilon()*4);
|
prec_inverse_4x4.cpp | 22 double error = double( (m*inv-MatrixType::Identity()).norm() / NumTraits<Scalar>::epsilon() ); 42 } while(absdet < NumTraits<Scalar>::epsilon()); 44 double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / NumTraits<Scalar>::epsilon() );
|
/external/libcups/cups/ |
pwg-private.h | 48 extern pwg_media_t *_pwgMediaNearSize(int width, int length, int epsilon);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/special/ |
Beta.java | 66 * @param epsilon When the absolute value of the nth item in the 67 * series is less than epsilon the approximation ceases 73 double epsilon) throws MathException 75 return regularizedBeta(x, a, b, epsilon, Integer.MAX_VALUE); 110 * @param epsilon When the absolute value of the nth item in the 111 * series is less than epsilon the approximation ceases 118 final double b, double epsilon, int maxIterations) throws MathException 127 ret = 1.0 - regularizedBeta(1.0 - x, b, a, epsilon, maxIterations); 153 FastMath.log(a) - logBeta(a, b, epsilon, maxIterations)) * 154 1.0 / fraction.evaluate(x, epsilon, maxIterations) [all...] |
Gamma.java | 151 * @param epsilon When the absolute value of the nth item in the 152 * series is less than epsilon the approximation ceases 160 double epsilon, 173 ret = 1.0 - regularizedGammaQ(a, x, epsilon, maxIterations); 179 while (FastMath.abs(an/sum) > epsilon && n < maxIterations && sum < Double.POSITIVE_INFINITY) { 228 * @param epsilon When the absolute value of the nth item in the 229 * series is less than epsilon the approximation ceases 237 double epsilon, 250 ret = 1.0 - regularizedGammaP(a, x, epsilon, maxIterations); 266 ret = 1.0 / cf.evaluate(x, epsilon, maxIterations) [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/linear/ |
SimplexSolver.java | 39 protected final double epsilon; field in class:SimplexSolver 50 * @param epsilon the amount of error to accept in floating point comparisons 52 public SimplexSolver(final double epsilon) { 53 this.epsilon = epsilon; 65 if (MathUtils.compareTo(tableau.getEntry(0, i), minValue, epsilon) < 0) { 86 if (MathUtils.compareTo(entry, 0, epsilon) > 0) { 88 if (MathUtils.equals(ratio, minRatio, epsilon)) { 106 if (MathUtils.equals(tableau.getEntry(row, column), 1, epsilon) && 165 if (!MathUtils.equals(tableau.getEntry(0, tableau.getRhsOffset()), 0, epsilon)) { [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
CubicBezierInterpolator.java | 75 final float epsilon = 1e-6f; local 91 double derivative = (getX(t + epsilon) - value) / epsilon; 92 if (Math.abs(value - x) < epsilon) { 94 } else if (Math.abs(derivative) < epsilon) { 108 for (int i = 0; Math.abs(value - x) > epsilon && i < iterations; i++) {
|
/external/replicaisland/src/com/replica/replicaisland/ |
Utils.java | 21 private static final float EPSILON = 0.0001f; 24 return close(a, b, EPSILON); 27 public final static boolean close(float a, float b, float epsilon) { 28 return Math.abs(a - b) < epsilon;
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
SoftLandingInterpolator.java | 42 final float epsilon = Math.min(mI / 2f, (1f - mI) / 2f); local 43 bottom = mI - epsilon; 44 top = mI + epsilon;
|
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/ |
chkder.h | 25 const Scalar eps = sqrt(NumTraits<Scalar>::epsilon()); 26 const Scalar epsf = chkder_factor * NumTraits<Scalar>::epsilon(); 56 if (temp > NumTraits<Scalar>::epsilon() && temp < eps)
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
ContinuedFraction.java | 81 * @param epsilon maximum error allowed. 85 public double evaluate(double x, double epsilon) throws MathException { 86 return evaluate(x, epsilon, Integer.MAX_VALUE); 121 * @param epsilon maximum error allowed. 126 public double evaluate(double x, double epsilon, int maxIterations) 136 while (n < maxIterations && relativeError > epsilon) {
|
/external/eigen/Eigen/src/SparseCore/ |
SparseView.h | 38 * entries smaller than \c reference * \c epsilon are removed. 55 const RealScalar &epsilon = NumTraits<Scalar>::dummy_precision()) 56 : m_matrix(mat), m_reference(reference), m_epsilon(epsilon) {} 69 RealScalar epsilon() const { return m_epsilon; } function in class:Eigen::SparseView 117 while((bool(*this)) && internal::isMuchSmallerThan(value(), m_view.reference(), m_view.epsilon())) 186 while((bool(*this)) && internal::isMuchSmallerThan(value(), m_sve.m_view.reference(), m_sve.m_view.epsilon())) 210 * \a reference * \a epsilon removed. 218 * S = D.sparseView(reference,epsilon); 221 * and \a epsilon is a tolerance factor defaulting to NumTraits<Scalar>::dummy_precision(). 226 const typename NumTraits<Scalar>::Real& epsilon) cons [all...] |
/external/google-benchmark/src/ |
benchmark_api_internal.h | 40 return std::abs(n) < std::numeric_limits<double>::epsilon();
|
/external/libcxx/utils/google-benchmark/src/ |
benchmark_api_internal.h | 40 return std::abs(n) < std::numeric_limits<double>::epsilon();
|
/external/eigen/Eigen/src/Core/ |
NumTraits.h | 18 // 0 for integer types, and log10(epsilon()) otherwise. 34 return int(ceil(-log10(NumTraits<Real>::epsilon()))); 78 * \li An epsilon() function which, unlike <a href="http://en.cppreference.com/w/cpp/types/numeric_limits/epsilon">std::numeric_limits::epsilon()</a>, 80 * \li A dummy_precision() function returning a weak epsilon value. It is mainly used as a default 110 static inline Real epsilon() 112 return numext::numeric_limits<T>::epsilon(); 186 static inline Real epsilon() { return NumTraits<Real>::epsilon(); } [all...] |