1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #11049 from take1014:#10948

* Fix #10948

* Add test code

* Fixed build error

* Add value zero

* eigen: test cleanup
This commit is contained in:
yuki takehara
2018-03-13 03:49:10 +09:00
committed by Alexander Alekhin
parent 5bf7f09ac1
commit 0792ef8789
2 changed files with 15 additions and 1 deletions
+4 -1
View File
@@ -350,6 +350,9 @@ private:
// Look for single small sub-diagonal element
int l = n1;
while (l > low) {
if (norm < FLT_EPSILON) {
break;
}
s = std::abs(H[l - 1][l - 1]) + std::abs(H[l][l]);
if (s == 0.0) {
s = norm;
@@ -594,7 +597,7 @@ private:
// Backsubstitute to find vectors of upper triangular form
if (norm == 0.0) {
if (norm < FLT_EPSILON) {
return;
}