SequentialBigSvd { public Matrix getU() { return cd1.solveRight(y).times(svd.getU()); } SequentialBigSvd(Matrix A, int p); Vector getSingularValues(); Matrix getU(); Matrix getV();  }
@Test public void testLeftVectors() { Matrix A = lowRankMatrix(); SequentialBigSvd s = new SequentialBigSvd(A, 8); SingularValueDecomposition svd = new SingularValueDecomposition(A); Matrix u1 = svd.getU().viewPart(0, 20, 0, 4).assign(Functions.ABS); Matrix u2 = s.getU().viewPart(0, 20, 0, 4).assign(Functions.ABS); assertEquals(0, u1.minus(u2).aggregate(Functions.PLUS, Functions.ABS), 1.0e-9); }