// Test SVD (not very deeply, however)
System.out.println("Testing SVD");
SVD svd = new SVD(a);
double[][] x = new double[b.length][b[0].length];
svd.solve(b,x);
sbeps = 1.e-14;
localflag = maxel(matsub(matmul(a,x),b)) > sbeps;
globalflag = globalflag || localflag;
if (localflag) {
fail("*** SVD: Inconsistent solution vector");