@Test public void testEigen1() { System.out.println("eigen1"); Matrix a = new Matrix(A); a.uplo(UPLO.LOWER); Matrix.EVD result = Lanczos.eigen(a, 1); assertEquals(eigenValues[0], result.wr[0], 1E-4); for (int i = 0; i < 3; i++) { assertEquals(Math.abs(eigenVectors[i][0]), Math.abs(result.Vr.get(i, 0)), 1E-4); } }
public static Matrix.EVD eigen(DMatrix A, int k) { return eigen(A, k, 1.0E-8, 10 * A.nrows()); }
Lanczos { public static Matrix.EVD eigen(DMatrix A, int k) { return eigen(A, k, 1.0E-8, 10 * A.nrows()); } }
Lanczos { public static Matrix.EVD eigen(DMatrix A, int k) { return eigen(A, k, 1.0E-8, 10 * A.nrows()); }  }
Lanczos { public static Matrix.EVD eigen(DMatrix A, int k) { return eigen(A, k, 1.0E-8, 10 * A.nrows()); }  static Matrix.EVD eigen(DMatrix A, int k); static Matrix.EVD eigen(DMatrix A, int k, double kappa, int maxIter); }
Lanczos { public static Matrix.EVD eigen(DMatrix A, int k) { return eigen(A, k, 1.0E-8, 10 * A.nrows()); }  static Matrix.EVD eigen(DMatrix A, int k); static Matrix.EVD eigen(DMatrix A, int k, double kappa, int maxIter);  }