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:
committed by
Alexander Alekhin
parent
5bf7f09ac1
commit
0792ef8789
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user