Commit 1989b4b5 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

eigenvector(): prevent getting stuck in iteration

This aborts the iteration if no progress is being made. This fixes issue #276.
parent 763a0871
Pipeline #118 passed with stage
......@@ -95,7 +95,7 @@ struct get_eigenvector
++iter;
if (max_iter > 0 && iter == max_iter)
break;
if (max_iter == 0 && delta > prev_delta && iter > 100)
if (max_iter == 0 && delta >= prev_delta && iter > 100)
break;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment