Searched refs:maxUlps (Results 1 – 4 of 4) sorted by relevance
/external/OpenCL-CTS/test_conformance/geometrics/ |
D | test_geometrics_double.cpp | 476 double maxUlps = 8192.0f + // error in sqrt in test_geom_fast_distance_double() local 481 …_double( queue, context, "fast_distance", sizes[ size ], verifyDistance_double, maxUlps, d ) != 0 ) in test_geom_fast_distance_double() 514 double maxUlps = 3.0f + // error in sqrt in test_geom_distance_double() local 519 maxUlps *= 2.0; // our reference code may be in error too in test_geom_distance_double() 521 …ernel_double( queue, context, "distance", sizes[ size ], verifyDistance_double, maxUlps, d ) != 0 ) in test_geom_distance_double() 677 double maxUlps = 3.0f + // error in sqrt in test_geom_length_double() local 682 maxUlps *= 2.0; // our reference code may be in error too in test_geom_length_double() 683 …at_kernel_double( queue, context, "length", sizes[ size ], verifyLength_double, maxUlps, d ) != 0 ) in test_geom_length_double() 722 double maxUlps = 8192.0f + // error in half_sqrt in test_geom_fast_length_double() local 727 …_double( queue, context, "fast_length", sizes[ size ], verifyFastLength_double, maxUlps, d ) != 0 ) in test_geom_fast_length_double() [all …]
|
D | test_geometrics.cpp | 554 float maxUlps = 8192.0f + // error in sqrt in test_geom_fast_distance() local 560 maxUlps, seed ) != 0 ) in test_geom_fast_distance() 601 float maxUlps = 3.0f + // error in sqrt in test_geom_distance() local 605 …woToFloat_kernel( queue, context, "distance", sizes[ size ], verifyDistance, maxUlps, seed ) != 0 ) in test_geom_distance() 766 float maxUlps = 3.0f + // error in sqrt in test_geom_length() local 771 …if( test_oneToFloat_kernel( queue, context, "length", sizes[ size ], verifyLength, maxUlps, seed )… in test_geom_length() 821 float maxUlps = 8192.0f + // error in half_sqrt in test_geom_fast_length() local 825 …loat_kernel( queue, context, "fast_length", sizes[ size ], verifyFastLength, maxUlps, seed ) != 0 ) in test_geom_fast_length() 1071 float maxUlps = 2.5f + // error in rsqrt + error in multiply in test_geom_normalize() local 1074 …oOne_kernel( queue, context, "normalize", sizes[ size ], verifyNormalize, maxUlps, 0, seed ) != 0 ) in test_geom_normalize() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
D | MathUtils.java | 489 public static boolean equals(float x, float y, int maxUlps) { in equals() argument 492 assert maxUlps > 0 && maxUlps < NAN_GAP; in equals() 505 final boolean isEqual = FastMath.abs(xInt - yInt) <= maxUlps; in equals() 522 public static boolean equalsIncludingNaN(float x, float y, int maxUlps) { 523 return (Float.isNaN(x) && Float.isNaN(y)) || equals(x, y, maxUlps); 679 public static boolean equals(double x, double y, int maxUlps) { 682 assert maxUlps > 0 && maxUlps < NAN_GAP; 695 return FastMath.abs(xInt - yInt) <= maxUlps; 710 public static boolean equalsIncludingNaN(double x, double y, int maxUlps) { 711 return (Double.isNaN(x) && Double.isNaN(y)) || equals(x, y, maxUlps);
|
/external/eigen/unsupported/test/mpreal/ |
D | mpreal.h | 886 inline bool isEqualUlps(const mpreal& a, const mpreal& b, int maxUlps); 2065 inline bool isEqualUlps(const mpreal& a, const mpreal& b, int maxUlps) 2067 return abs(a - b) <= machine_epsilon((max)(abs(a), abs(b))) * maxUlps;
|