Commit 24872a6a authored by Davis King's avatar Davis King

Fixed a segmentation fault in the eigenvalue_decomposition object

which could occur when NaN valued inputs were given.
parent cecc38f5
...@@ -593,6 +593,8 @@ namespace dlib ...@@ -593,6 +593,8 @@ namespace dlib
} }
m++; m++;
} }
if (m == n)
--m;
// If m == l, d(l) is an eigenvalue, // If m == l, d(l) is an eigenvalue,
......
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