1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

improved jSVD accuracy

This commit is contained in:
Vadim Pisarevsky
2011-05-24 13:25:26 +00:00
parent a360a19c56
commit 0bf00036a8
+1 -1
View File
@@ -592,7 +592,7 @@ JacobiSVDImpl_(_Tp* At, size_t astep, _Tp* W, _Tp* Vt, size_t vstep, int m, int
delta = (_Tp)(p*p*0.5/(gamma + beta));
}
if( iter % 4 )
if( iter % 2 )
{
W[i] = (_Tp)(W[i] + delta);
W[j] = (_Tp)(W[j] - delta);