/** * <p> * Checks to see if each element in the matrix is within tolerance of each other: * </p> * * <p> * The two matrices are identical with in tolerance if:<br> * |a<sub>ij</sub> - b<sub>ij</sub>| ≤ tol * </p> * * <p> * In addition if an element is NaN or infinite in one matrix it must be the same in the other. * </p> * * @param A Matrix A * @param B Matrix B * @param tol Tolerance */ public static void assertEqualsUncountable( SimpleMatrix A , SimpleMatrix B , double tol ) { EjmlUnitTests.assertEqualsUncountable(A.getMatrix(), B.getMatrix(), tol); }