public double evaluateIteration(){
  double oldEigenvalue=eigenvalue;
  transposedEigenvector=transposedEigenvector.secureProduct(matrix);
  transposedEigenvector=transposedEigenvector.product(1.0 / transposedEigenvector.components[0]);
  eigenvector=matrix.secureProduct(eigenvector);
  eigenvalue=eigenvector.components[0];
  eigenvector=eigenvector.product(1.0 / eigenvalue);
  return Double.isNaN(oldEigenvalue) ? 10 * getDesiredPrecision() : Math.abs(eigenvalue - oldEigenvalue);
}

public double evaluateIteration ( ) { double oldEigenvalue = eigenvalue ; transposedEigenvector = transposedEigenvector . secureProduct ( matrix ) ; transposedEigenvector = transposedEigenvector . product ( 1.0 / transposedEigenvector . components [ 0 ] ) ; eigenvector = matrix . secureProduct ( eigenvector ) ; eigenvalue = eigenvector . components [ 0 ] ; eigenvector = eigenvector . product ( 1.0 / eigenvalue ) ; return Double . isNaN ( oldEigenvalue ) ? 10 * getDesiredPrecision ( ) : Math . abs ( eigenvalue - oldEigenvalue ) ; }
iterate matrix product in eigenvalue information .
