I'm using your library Alglib for c++ and I found some undesirable behavior in some specific data. Maybe you can help me! The case is very strange, becouse some part of result matrix contains data from input matrix :( Description of case: I'm using rmatrixsvd:
bool result = rmatrixsvd(*data, data->rows(), data->cols(), 1, 1, 0, *sTemp, *u, *v);
In attachment you'll find exported data matrix, and also matrices sTemp, u, v. Problems occur in matrix …. If you multiply matrices in this case you'll not get the same matrix as data. This calculation was made in two different computers (one was grid) and results was the same. To compare it I calculated this case (matrix data) in Matlab and got correct results. Sometimes when I have another, different matrices the calculations go alright. Maybe there is some bug in algorithm?
I'll be happy if you would like to answer me with this problem!
Attachments: |
File comment: some calculaton made in MatLab
rozklady.txt [8.42 KiB]
Downloaded 584 times
|
File comment: output matrix with wrong data
v_error.csv [2.1 KiB]
Downloaded 628 times
|
File comment: input matrix
data.csv [744 Bytes]
Downloaded 656 times
|
|