System.out.println("done");
}
public void checkRandomMatrices( int N ) {
System.out.println("N = "+N);
EigenDecomposition decomp = DecompositionFactory.eig(N,true);
DenseMatrix64F A = new DenseMatrix64F(N,N);
for( int i = 0; i < 1000; i++ ) {
long seed = rand.nextLong();
System.out.print("Date = "+new Date()+" Seed = "+seed);
Random localRand = new Random(seed);
RandomMatrices.createSymmetric(A,-1,1,localRand);
if( !decomp.decompose(A) ) {
System.out.println("Decomposition failed");
return;
}
double error = DecompositionFactory.quality(A,decomp);