3435363738394041424344
void testFactorization(Matrix A, Vector x) { Vector b = A.mult(x, x.copy()); ICC icc = new ICC(new CompRowMatrix(A)); icc.setMatrix(A); icc.apply(b, x); Vector r = A.multAdd(-1, x, b.copy()); assertEquals(0, r.norm(Vector.Norm.TwoRobust), 1e-5); }