forum.alglib.net
http://forum.alglib.net/

rmatrixsvd - bug?
http://forum.alglib.net/viewtopic.php?f=2&t=598
Page 1 of 1

Author:  borecki [ Mon Jul 16, 2012 7:35 am ]
Post subject:  rmatrixsvd - bug?

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 585 times
File comment: output matrix with wrong data
v_error.csv [2.1 KiB]
Downloaded 629 times
File comment: input matrix
data.csv [744 Bytes]
Downloaded 657 times

Author:  Sergey.Bochkanov [ Tue Jul 17, 2012 8:26 am ]
Post subject:  Re: rmatrixsvd - bug?

Hello!

We've started working on problem, updates will be posted here. Thanks for the report!

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/