Commit 0bf00036 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

improved jSVD accuracy

parent a360a19c
...@@ -592,7 +592,7 @@ JacobiSVDImpl_(_Tp* At, size_t astep, _Tp* W, _Tp* Vt, size_t vstep, int m, int ...@@ -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)); delta = (_Tp)(p*p*0.5/(gamma + beta));
} }
if( iter % 4 ) if( iter % 2 )
{ {
W[i] = (_Tp)(W[i] + delta); W[i] = (_Tp)(W[i] + delta);
W[j] = (_Tp)(W[j] - delta); W[j] = (_Tp)(W[j] - delta);
......
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