fixed yet another bug in SVD. Now Core_SVD test passes

This commit is contained in:
Vadim Pisarevsky 2011-12-08 11:10:56 +00:00
parent 72c23e7bbb
commit 5db9e90d66

View File

@ -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 )
return;
RNG rng(0x12345678);
@ -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++ )
At[i*astep + k] *= s;
}
for( i = 0; i < n; i++ )
_W[i] = (_Tp)W[i];
}