{
int N = alg.getNumberOfEigenvalues();
int numMatched = 0;
for( int i = 0; i < N; i++ ) {
Complex64F c = alg.getEigenvalue(i);
if( Math.abs(c.real-valueReal) < 1e-4 && Math.abs(c.imaginary-valueImg) < 1e-4) {
if( c.isReal() ) {
if( vector.length > 0 ) {
DenseMatrix64F v = alg.getEigenVector(i);
DenseMatrix64F e = new DenseMatrix64F(N,1, true, vector);
double error = SpecializedOps.diffNormF(e,v);
CommonOps.changeSign(e);
double error2 = SpecializedOps.diffNormF(e,v);
if(error < 1e-3 || error2 < 1e-3)
numMatched++;
} else {
numMatched++;
}
} else if( !c.isReal() ) {
numMatched++;
}
}
}