Commit 0ca80ad0 authored by Davis King's avatar Davis King

Increased the max number of iterations in the SVD algorithms to help with

convergence on large poorly conditioned matrices.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403274
parent 5b8b7202
...@@ -118,7 +118,7 @@ namespace dlib ...@@ -118,7 +118,7 @@ namespace dlib
COMPILE_TIME_ASSERT(rX == 0 || rX == 1); COMPILE_TIME_ASSERT(rX == 0 || rX == 1);
const T one = 1.0; const T one = 1.0;
const long max_iter = 30; const long max_iter = 300;
const long n = a.nc(); const long n = a.nc();
const long m = a.nr(); const long m = a.nr();
const T eps = std::numeric_limits<T>::epsilon(); const T eps = std::numeric_limits<T>::epsilon();
...@@ -859,7 +859,7 @@ test_f_convergence: ...@@ -859,7 +859,7 @@ test_f_convergence:
/* shift from bottom 2x2 minor */ /* shift from bottom 2x2 minor */
iter++; iter++;
if (iter > 30) if (iter > 300)
{ {
retval = k; retval = k;
break; break;
......
Markdown is supported
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