Commit 5db9e90d authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed yet another bug in SVD. Now Core_SVD test passes

parent 72c23e7b
...@@ -672,6 +672,9 @@ JacobiSVDImpl_(_Tp* At, size_t astep, _Tp* _W, _Tp* Vt, size_t vstep, int m, int ...@@ -672,6 +672,9 @@ JacobiSVDImpl_(_Tp* At, size_t astep, _Tp* _W, _Tp* Vt, size_t vstep, int m, int
} }
} }
for( i = 0; i < n; i++ )
_W[i] = (_Tp)W[i];
if( !Vt ) if( !Vt )
return; return;
RNG rng(0x12345678); RNG rng(0x12345678);
...@@ -722,9 +725,6 @@ JacobiSVDImpl_(_Tp* At, size_t astep, _Tp* _W, _Tp* Vt, size_t vstep, int m, int ...@@ -722,9 +725,6 @@ JacobiSVDImpl_(_Tp* At, size_t astep, _Tp* _W, _Tp* Vt, size_t vstep, int m, int
for( k = 0; k < m; k++ ) for( k = 0; k < m; k++ )
At[i*astep + k] *= s; At[i*astep + k] *= s;
} }
for( i = 0; i < n; i++ )
_W[i] = (_Tp)W[i];
} }
......
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