List of utility methods to do Double Array Equal
boolean | doubleArraysAreEqual(double array1[], double array2[]) Test if two double arrays are equal. int i, n; if (array1 == null) return (array2 == null); n = array1.length; if (n != array2.length) return false; for (i = 0; i < n; i++) { if (array1[i] != array2[i]) ... |
boolean | doubleArraysEqual(Double[] a, Double[] b, double tol) double Arrays Equal if (a.length != b.length) return false; for (int i = 0; i < a.length; i++) if (Math.abs(a[i] - b[i]) > tol) return false; return true; |