/external/skia/src/pathops/ |
D | SkPathOpsTypes.cpp | 10 static bool arguments_denormalized(float a, float b, int epsilon) { in arguments_denormalized() argument 11 float denormalizedCheck = FLT_EPSILON * epsilon / 2; in arguments_denormalized() 17 static bool equal_ulps(float a, float b, int epsilon, int depsilon) { in equal_ulps() argument 27 return aBits < bBits + epsilon && bBits < aBits + epsilon; in equal_ulps() 30 static bool d_equal_ulps(float a, float b, int epsilon) { in d_equal_ulps() argument 37 return aBits < bBits + epsilon && bBits < aBits + epsilon; in d_equal_ulps() 40 static bool not_equal_ulps(float a, float b, int epsilon) { in not_equal_ulps() argument 44 if (arguments_denormalized(a, b, epsilon)) { in not_equal_ulps() 50 return aBits >= bBits + epsilon || bBits >= aBits + epsilon; in not_equal_ulps() 53 static bool d_not_equal_ulps(float a, float b, int epsilon) { in d_not_equal_ulps() argument [all …]
|
/external/jmonkeyengine/engine/src/core-effects/Common/MatDefs/SSAO/ |
D | ssaoBlur.frag | 32 const float epsilon = 0.005; 50 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 77 float coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 83 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 89 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 95 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 101 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 107 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 113 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 119 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); [all …]
|
D | ssaoBlur15.frag | 33 const float epsilon = 0.005; 51 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 78 float coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 84 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 90 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 96 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 102 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 108 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 114 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 120 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/linear/ |
D | SimplexSolver.java | 39 protected final double epsilon; field in SimplexSolver 52 public SimplexSolver(final double epsilon) { in SimplexSolver() argument 53 this.epsilon = epsilon; in SimplexSolver() 65 if (MathUtils.compareTo(tableau.getEntry(0, i), minValue, epsilon) < 0) { in getPivotColumn() 86 if (MathUtils.compareTo(entry, 0, epsilon) > 0) { in getPivotRow() 88 if (MathUtils.equals(ratio, minRatio, epsilon)) { in getPivotRow() 106 if (MathUtils.equals(tableau.getEntry(row, column), 1, epsilon) && in getPivotRow() 165 if (!MathUtils.equals(tableau.getEntry(0, tableau.getRhsOffset()), 0, epsilon)) { in solvePhase1() 174 new SimplexTableau(function, linearConstraints, goal, nonNegative, epsilon); in doOptimize()
|
D | SimplexTableau.java | 96 private final double epsilon; field in SimplexTableau 110 final double epsilon) { in SimplexTableau() argument 114 this.epsilon = epsilon; in SimplexTableau() 288 if (MathUtils.equals(getEntry(i, col), 1.0, epsilon) && (row == null)) { in getBasicRow() 290 } else if (!MathUtils.equals(getEntry(i, col), 0.0, epsilon)) { in getBasicRow() 311 if (MathUtils.compareTo(tableau.getEntry(0, i), 0, epsilon) > 0) { in dropPhase1Objective() 356 if (MathUtils.compareTo(tableau.getEntry(0, i), 0, epsilon) < 0) { in isOptimal() 547 (epsilon == rhs.epsilon) && in equals() 562 Double.valueOf(epsilon).hashCode() ^ in hashCode()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
D | PoissonDistributionImpl.java | 70 private double epsilon = DEFAULT_EPSILON; field in PoissonDistributionImpl 92 public PoissonDistributionImpl(double p, double epsilon, int maxIterations) { in PoissonDistributionImpl() argument 94 this.epsilon = epsilon; in PoissonDistributionImpl() 105 public PoissonDistributionImpl(double p, double epsilon) { in PoissonDistributionImpl() argument 107 this.epsilon = epsilon; in PoissonDistributionImpl() 219 return Gamma.regularizedGammaQ((double) x + 1, mean, epsilon, maxIterations); in cumulativeProbability()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/special/ |
D | Beta.java | 73 double epsilon) throws MathException in regularizedBeta() argument 75 return regularizedBeta(x, a, b, epsilon, Integer.MAX_VALUE); in regularizedBeta() 118 final double b, double epsilon, int maxIterations) throws MathException in regularizedBeta() argument 127 ret = 1.0 - regularizedBeta(1.0 - x, b, a, epsilon, maxIterations); in regularizedBeta() 153 FastMath.log(a) - logBeta(a, b, epsilon, maxIterations)) * in regularizedBeta() 154 1.0 / fraction.evaluate(x, epsilon, maxIterations); in regularizedBeta() 188 public static double logBeta(double a, double b, double epsilon, in logBeta() argument
|
D | Gamma.java | 160 double epsilon, in regularizedGammaP() argument 173 ret = 1.0 - regularizedGammaQ(a, x, epsilon, maxIterations); in regularizedGammaP() 179 … while (FastMath.abs(an/sum) > epsilon && n < maxIterations && sum < Double.POSITIVE_INFINITY) { in regularizedGammaP() 237 double epsilon, in regularizedGammaQ() argument 250 ret = 1.0 - regularizedGammaP(a, x, epsilon, maxIterations); in regularizedGammaQ() 266 ret = 1.0 / cf.evaluate(x, epsilon, maxIterations); in regularizedGammaQ()
|
/external/v8/test/mjsunit/ |
D | sin-cos.js | 118 var epsilon = 0.0000001; variable 121 test_inputs.push(0 + epsilon); 122 test_inputs.push(0 - epsilon); 124 test_inputs.push(Math.PI/2 + epsilon); 125 test_inputs.push(Math.PI/2 - epsilon); 127 test_inputs.push(Math.PI + epsilon); 128 test_inputs.push(Math.PI - epsilon); 130 test_inputs.push(- 2*Math.PI + epsilon); 131 test_inputs.push(- 2*Math.PI - epsilon); 165 function assertError(expected, x, epsilon) { argument [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/ |
D | OpenMapRealVector.java | 47 private final double epsilon; field in OpenMapRealVector 75 public OpenMapRealVector(int dimension, double epsilon) { in OpenMapRealVector() argument 78 this.epsilon = epsilon; in OpenMapRealVector() 89 epsilon = v.epsilon; in OpenMapRealVector() 107 public OpenMapRealVector(int dimension, int expectedSize, double epsilon) { in OpenMapRealVector() argument 110 this.epsilon = epsilon; in OpenMapRealVector() 128 public OpenMapRealVector(double[] values, double epsilon) { in OpenMapRealVector() argument 131 this.epsilon = epsilon; in OpenMapRealVector() 155 public OpenMapRealVector(Double[] values, double epsilon) { in OpenMapRealVector() argument 158 this.epsilon = epsilon; in OpenMapRealVector() [all …]
|
/external/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/ |
D | epsilon.pass.cpp | 22 assert(std::numeric_limits<T>::epsilon() == expected); in test() 23 assert(std::numeric_limits<const T>::epsilon() == expected); in test() 24 assert(std::numeric_limits<volatile T>::epsilon() == expected); in test() 25 assert(std::numeric_limits<const volatile T>::epsilon() == expected); in test()
|
/external/eigen/Eigen/src/Core/ |
D | NumTraits.h | 71 static inline Real epsilon() { return std::numeric_limits<T>::epsilon(); } in epsilon() function 120 static inline Real epsilon() { return NumTraits<Real>::epsilon(); } 144 static inline RealScalar epsilon() { return NumTraits<RealScalar>::epsilon(); }
|
/external/eigen/test/eigen2/ |
D | eigen2_prec_inverse_4x4.cpp | 24 template<typename T> inline typename NumTraits<T>::Real epsilon() in epsilon() function 26 return std::numeric_limits<typename NumTraits<T>::Real>::epsilon(); in epsilon() 42 double error = double( (m*inv-MatrixType::Identity()).norm() / epsilon<Scalar>() ); in inverse_permutation_4x4() 60 } while(absdet < 10 * epsilon<Scalar>()); in inverse_general_4x4() 62 double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / epsilon<Scalar>() ); in inverse_general_4x4()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
D | ContinuedFraction.java | 85 public double evaluate(double x, double epsilon) throws MathException { in evaluate() argument 86 return evaluate(x, epsilon, Integer.MAX_VALUE); in evaluate() 126 public double evaluate(double x, double epsilon, int maxIterations) in evaluate() argument 136 while (n < maxIterations && relativeError > epsilon) { in evaluate()
|
D | FastMath.java | 780 final double epsilon = x - (intVal + intFrac / 1024.0); in exp() local 790 z = z * epsilon + 0.1666666505023083; in exp() 791 z = z * epsilon + 0.5000000000042687; in exp() 792 z = z * epsilon + 1.0; in exp() 793 z = z * epsilon + -3.940510424527919E-20; in exp() 859 double epsilon; in expm1() local 880 epsilon = x - intFrac/1024.0; in expm1() 886 zb = zb * epsilon + 0.041666663879186654; in expm1() 887 zb = zb * epsilon + 0.16666666666745392; in expm1() 888 zb = zb * epsilon + 0.49999999999999994; in expm1() [all …]
|
/external/skia/tests/ |
D | PathOpsAngleTest.cpp | 54 int epsilon = abs(p1Bits - p2Bits); in DEF_TEST() local 55 if (maxEpsilon < epsilon) { in DEF_TEST() 58 line[1].fX, line[1].fY, t, test.fX, test.fY, epsilon); in DEF_TEST() 59 maxEpsilon = epsilon; in DEF_TEST() 107 int epsilon = abs(p1Bits - p2Bits); in DEF_TEST() local 108 if (maxEpsilon < epsilon) { in DEF_TEST() 111 line[1].fX, line[1].fY, t, t2, t3, moveT, last.fX, last.fY, epsilon); in DEF_TEST() 112 maxEpsilon = epsilon; in DEF_TEST() 134 double epsilon = ldexp(FLT_EPSILON, exponent); in find_slop() local 139 double xSlop = epsilon * slopBits; in find_slop()
|
/external/deqp/framework/delibs/decpp/ |
D | deRandom.cpp | 91 const float epsilon = 0.01f; in Random_selfTest() local 94 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat()) < epsilon); in Random_selfTest() 101 const float epsilon = 0.01f; in Random_selfTest() local 104 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat(-542.2f, 1248.7f)) < epsilon); in Random_selfTest()
|
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/ |
D | LevenbergMarquardt.h | 58 , ftol(std::sqrt(NumTraits<Scalar>::epsilon())) in Parameters() 59 , xtol(std::sqrt(NumTraits<Scalar>::epsilon())) in Parameters() 75 const Scalar tol = std::sqrt(NumTraits<Scalar>::epsilon()) 86 const Scalar tol = std::sqrt(NumTraits<Scalar>::epsilon()) 91 const Scalar tol = std::sqrt(NumTraits<Scalar>::epsilon()) 342 …if (abs(actred) <= NumTraits<Scalar>::epsilon() && prered <= NumTraits<Scalar>::epsilon() && Scala… in minimizeOneStep() 344 if (delta <= NumTraits<Scalar>::epsilon() * xnorm) in minimizeOneStep() 346 if (gnorm <= NumTraits<Scalar>::epsilon()) in minimizeOneStep() 592 …if (abs(actred) <= NumTraits<Scalar>::epsilon() && prered <= NumTraits<Scalar>::epsilon() && Scala… in minimizeOptimumStorageOneStep() 594 if (delta <= NumTraits<Scalar>::epsilon() * xnorm) in minimizeOptimumStorageOneStep() [all …]
|
D | chkder.h | 25 const Scalar eps = sqrt(NumTraits<Scalar>::epsilon()); in chkder() 26 const Scalar epsf = chkder_factor * NumTraits<Scalar>::epsilon(); in chkder() 56 if (temp > NumTraits<Scalar>::epsilon() && temp < eps) in chkder()
|
/external/eigen/test/ |
D | prec_inverse_4x4.cpp | 22 double error = double( (m*inv-MatrixType::Identity()).norm() / NumTraits<Scalar>::epsilon() ); in inverse_permutation_4x4() 42 } while(absdet < NumTraits<Scalar>::epsilon()); in inverse_general_4x4() 44 …le error = double( (m*inv-MatrixType::Identity()).norm() * absdet / NumTraits<Scalar>::epsilon() ); in inverse_general_4x4()
|
/external/libvorbis/lib/ |
D | lpc.c | 65 double epsilon; in vorbis_lpc_from_data() local 80 epsilon=1e-9*aut[0]+1e-10; in vorbis_lpc_from_data() 85 if(error<epsilon){ in vorbis_lpc_from_data()
|
/external/eigen/unsupported/Eigen/src/LevenbergMarquardt/ |
D | LMonestep.h | 178 …if (abs(actred) <= NumTraits<Scalar>::epsilon() && prered <= NumTraits<Scalar>::epsilon() && Scala… in minimizeOneStep() 183 if (m_delta <= NumTraits<Scalar>::epsilon() * xnorm) in minimizeOneStep() 188 if (m_gnorm <= NumTraits<Scalar>::epsilon()) in minimizeOneStep()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | Utils.java | 27 public final static boolean close(float a, float b, float epsilon) { in close() argument 28 return Math.abs(a - b) < epsilon; in close()
|
/external/eigen/unsupported/test/ |
D | levenberg_marquardt.cpp | 308 lm.setFtol(1.E6*NumTraits<double>::epsilon()); in testNistChwirut2() 309 lm.setXtol(1.E6*NumTraits<double>::epsilon()); in testNistChwirut2() 864 lm.setFtol(1.E6*NumTraits<double>::epsilon()); in testNistBoxBOD() 865 lm.setXtol(1.E6*NumTraits<double>::epsilon()); in testNistBoxBOD() 885 lm.setFtol(NumTraits<double>::epsilon()); in testNistBoxBOD() 886 lm.setXtol( NumTraits<double>::epsilon()); in testNistBoxBOD() 946 lm.setFtol(NumTraits<double>::epsilon()); in testNistMGH17() 947 lm.setXtol(NumTraits<double>::epsilon()); in testNistMGH17() 1208 lm.setFtol(1.E4*NumTraits<double>::epsilon()); in testNistThurber() 1209 lm.setXtol(1.E4*NumTraits<double>::epsilon()); in testNistThurber() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/ |
D | Fraction.java | 118 public Fraction(double value, double epsilon, int maxIterations) in Fraction() argument 121 this(value, epsilon, Integer.MAX_VALUE, maxIterations); in Fraction() 175 private Fraction(double value, double epsilon, int maxDenominator, int maxIterations) in Fraction() argument 187 if (FastMath.abs(a0 - value) < epsilon) { in Fraction() 214 … if (n < maxIterations && FastMath.abs(convergent - value) > epsilon && q2 < maxDenominator) { in Fraction()
|