Who can recoment stable and correct implementation SVD method in C++? Preferably standalone implementation (would not want to add large library for one method).
I use OpenCV... but openCV SVD return different decomposition(!) for single matrix. I understand, that exists more than one decomposition of simple matrix... but why openCV do like that? random basis? or what?
This instability causes the error in my calculations in some cases, and I can't understand why. However, the results are returned by mathlab or wolframalpha - always give correct calculations ....