Home
last modified time | relevance | path

Searched refs:epsilon (Results 1 – 25 of 260) sorted by relevance

1234567891011

/external/vulkan-validation-layers/libs/glm/gtx/
Dvector_query.inl24 …static bool call(detail::tvec2<T, P> const & v0, detail::tvec2<T, P> const & v1, T const & epsilon)
26 …detail::tvec3<T, P>(v0, static_cast<T>(0)), detail::tvec3<T, P>(v1, static_cast<T>(0)))) < epsilon;
33 …static bool call(detail::tvec3<T, P> const & v0, detail::tvec3<T, P> const & v1, T const & epsilon)
35 return length(cross(v0, v1)) < epsilon;
42 …static bool call(detail::tvec4<T, P> const & v0, detail::tvec4<T, P> const & v1, T const & epsilon)
44 return length(cross(detail::tvec3<T, P>(v0), detail::tvec3<T, P>(v1))) < epsilon;
54 …FUNC_QUALIFIER static detail::tvec2<bool, P> call(detail::tvec2<T, P> const & v, T const & epsilon)
57 (abs(v.x) < epsilon),
58 (abs(v.y) < epsilon));
65 …FUNC_QUALIFIER static detail::tvec3<bool, P> call(detail::tvec3<T, P> const & v, T const & epsilon)
[all …]
Dmatrix_query.inl16 GLM_FUNC_QUALIFIER bool isNull(detail::tmat2x2<T, P> const & m, T const & epsilon) argument
20 result = isNull(m[i], epsilon);
25 GLM_FUNC_QUALIFIER bool isNull(detail::tmat3x3<T, P> const & m, T const & epsilon) argument
29 result = isNull(m[i], epsilon);
34 GLM_FUNC_QUALIFIER bool isNull(detail::tmat4x4<T, P> const & m, T const & epsilon) argument
38 result = isNull(m[i], epsilon);
43 GLM_FUNC_QUALIFIER bool isIdentity(matType<T, P> const & m, T const & epsilon) argument
49 result = abs(m[i][j]) <= epsilon;
51 result = abs(m[i][i] - 1) <= epsilon;
53 result = abs(m[i][j]) <= epsilon;
[all …]
Dmatrix_query.hpp59 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);
Dvector_query.hpp58 …FUNC_DECL bool areCollinear(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);
63 …UNC_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 …NC_DECL bool areOrthonormal(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);
Dmatrix_interpolation.inl20 T epsilon = (T)0.01; local
23 …((abs(mat[1][0] - mat[0][1]) < epsilon) && (abs(mat[2][0] - mat[0][2]) < epsilon) && (abs(mat[2][1…
42 if (xx < epsilon) {
54 if (yy < epsilon) {
66 if (zz < epsilon) {
/external/skia/src/pathops/
DSkPathOpsTypes.cpp11 static bool arguments_denormalized(float a, float b, int epsilon) { in arguments_denormalized() argument
12 float denormalizedCheck = FLT_EPSILON * epsilon / 2; in arguments_denormalized()
18 static bool equal_ulps(float a, float b, int epsilon, int depsilon) { in equal_ulps() argument
25 return aBits < bBits + epsilon && bBits < aBits + epsilon; in equal_ulps()
28 static bool equal_ulps_pin(float a, float b, int epsilon, int depsilon) { in equal_ulps_pin() argument
38 return aBits < bBits + epsilon && bBits < aBits + epsilon; in equal_ulps_pin()
41 static bool d_equal_ulps(float a, float b, int epsilon) { in d_equal_ulps() argument
45 return aBits < bBits + epsilon && bBits < aBits + epsilon; in d_equal_ulps()
48 static bool not_equal_ulps(float a, float b, int epsilon) { in not_equal_ulps() argument
49 if (arguments_denormalized(a, b, epsilon)) { in not_equal_ulps()
[all …]
/external/opencv3/3rdparty/openexr/Imath/
DImathLimits.h122 static T epsilon();
138 static char epsilon() {return 1;}
149 static signed char epsilon() {return 1;}
160 static unsigned char epsilon() {return 1;}
171 static short epsilon() {return 1;}
182 static unsigned short epsilon() {return 1;}
193 static int epsilon() {return 1;}
204 static unsigned int epsilon() {return 1;}
215 static long epsilon() {return 1;}
226 static unsigned long epsilon() {return 1;}
[all …]
/external/opencv3/modules/core/misc/java/src/java/
Dcore+TermCriteria.java21 public double epsilon; field in TermCriteria
33 public TermCriteria(int type, int maxCount, double epsilon) { in TermCriteria() argument
36 this.epsilon = epsilon; in TermCriteria()
54 epsilon = vals.length > 2 ? (double) vals[2] : 0; in set()
58 epsilon = 0; in set()
63 return new TermCriteria(type, maxCount, epsilon); in clone()
75 temp = Double.doubleToLongBits(epsilon); in hashCode()
85 return type == it.type && maxCount == it.maxCount && epsilon == it.epsilon; in equals()
90 return "{ type: " + type + ", maxCount: " + maxCount + ", epsilon: " + epsilon + "}"; in toString()
/external/vulkan-validation-layers/libs/glm/gtc/
Depsilon.inl24 /// @file glm/gtc/epsilon.inl
44 float const & epsilon argument
47 return abs(x - y) < epsilon;
55 double const & epsilon argument
58 return abs(x - y) < epsilon;
66 float const & epsilon argument
69 return abs(x - y) >= epsilon;
77 double const & epsilon argument
80 return abs(x - y) >= epsilon;
88 T const & epsilon argument
[all …]
Depsilon.hpp64 T const & epsilon);
74 genType const & epsilon);
84 typename genType::value_type const & epsilon);
94 genType const & epsilon);
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/linear/
DSimplexSolver.java39 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()
DSimplexTableau.java96 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/
DPoissonDistributionImpl.java70 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/
DBeta.java73 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
DGamma.java160 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/
Dsin-cos.js118 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/
DOpenMapRealVector.java47 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/opencv3/modules/java/android_test/src/org/opencv/test/
DOpenCVTestCase.java223 …lic static <E extends Number> void assertListEquals(List<E> list1, List<E> list2, double epsilon) { in assertListEquals() argument
229 … assertTrue(Math.abs(list1.get(i).doubleValue() - list2.get(i).doubleValue()) <= epsilon); in assertListEquals()
232 public static <E extends Number> void assertArrayEquals(E[] ar1, E[] ar2, double epsilon) { in assertArrayEquals() argument
238 assertEquals(ar1[i].doubleValue(), ar2[i].doubleValue(), epsilon); in assertArrayEquals()
242 public static void assertArrayEquals(double[] ar1, double[] ar2, double epsilon) { in assertArrayEquals() argument
248 assertEquals(ar1[i], ar2[i], epsilon); in assertArrayEquals()
252 public static void assertListMatEquals(List<Mat> list1, List<Mat> list2, double epsilon) { in assertListMatEquals() argument
258 assertMatEqual(list1.get(i), list2.get(i), epsilon); in assertListMatEquals() local
261 public static void assertListPointEquals(List<Point> list1, List<Point> list2, double epsilon) { in assertListPointEquals() argument
267 assertPointEquals(list1.get(i), list2.get(i), epsilon); in assertListPointEquals() local
[all …]
/external/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/
Depsilon.pass.cpp22 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/opencv3/modules/core/misc/java/test/
DTermCriteriaTest.java41 assertEquals(0.0, tc1.epsilon); in testSet()
48 assertEquals(0.002, tc2.epsilon); in testSet()
57 assertEquals(0.0, tc1.epsilon); in testTermCriteria()
66 assertEquals(0.007, tc1.epsilon); in testTermCriteriaDoubleArray()
75 assertEquals(EPS, tc2.epsilon); in testTermCriteriaIntIntDouble()
/external/opencv3/modules/java/pure_test/src/org/opencv/test/
DOpenCVTestCase.java253 …lic static <E extends Number> void assertListEquals(List<E> list1, List<E> list2, double epsilon) { in assertListEquals() argument
259 … assertTrue(Math.abs(list1.get(i).doubleValue() - list2.get(i).doubleValue()) <= epsilon); in assertListEquals()
262 public static <E extends Number> void assertArrayEquals(E[] ar1, E[] ar2, double epsilon) { in assertArrayEquals() argument
268 assertEquals(ar1[i].doubleValue(), ar2[i].doubleValue(), epsilon); in assertArrayEquals()
272 public static void assertArrayEquals(double[] ar1, double[] ar2, double epsilon) { in assertArrayEquals() argument
278 assertEquals(ar1[i], ar2[i], epsilon); in assertArrayEquals()
282 public static void assertListMatEquals(List<Mat> list1, List<Mat> list2, double epsilon) { in assertListMatEquals() argument
288 assertMatEqual(list1.get(i), list2.get(i), epsilon); in assertListMatEquals() local
291 public static void assertListPointEquals(List<Point> list1, List<Point> list2, double epsilon) { in assertListPointEquals() argument
297 assertPointEquals(list1.get(i), list2.get(i), epsilon); in assertListPointEquals() local
[all …]
/external/eigen/Eigen/src/Core/
DNumTraits.h71 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/
Deigen2_prec_inverse_4x4.cpp24 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/opencv3/modules/cudaimgproc/src/
Dmean_shift.cpp83 criteria.epsilon = 1.f; in meanShiftFiltering()
85 float eps = (float) std::max(criteria.epsilon, 0.0); in meanShiftFiltering()
121 criteria.epsilon = 1.f; in meanShiftProc()
123 float eps = (float) std::max(criteria.epsilon, 0.0); in meanShiftProc()
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DContinuedFraction.java85 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()

1234567891011