Home
last modified time | relevance | path

Searched refs:maxUlps (Results 1 – 2 of 2) sorted by relevance

/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DMathUtils.java489 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/
Dmpreal.h938 inline bool isEqualUlps(const mpreal& a, const mpreal& b, int maxUlps);
2050 inline bool isEqualUlps(const mpreal& a, const mpreal& b, int maxUlps)
2052 return abs(a - b) <= machine_epsilon((max)(abs(a), abs(b))) * maxUlps;