Registered Member
|
hello,
i'm using MSVC 2008 and trying to compute SVD. i'm testing with a matrix as in http://en.wikipedia.org/wiki/Singular_value_decomposition#Example.
in Debug Mode, after trying to run the code the output was:
in Release Mode, the output was correct but the application still crashes and an error message box from visual studio is showed up (a screenshot: http://aurodeus.freehostia.com/skripsi/error.html) any idea? btw, in my real project i will need to set the values for each matrix element separately, so how to set values for each A(m,n) separately? and since i'm working with Windows Forms Application (not a Console Application as above) i will need to get the Singular Values separately also and then convert them to String, so how to get the Singular Values separately? many thanks before! |
Registered Member
|
First of all, you seem primarily interested in SVD, which to be honest isn't the greatest aspect of Eigen 2.0 (where we explicitly say that it is experimental). I'd recommend you to either try the development branch, or re-evaluate Eigen when we release the next major version.
Yes, in Eigen 2.0 the SVD is only for MxN matrices with M>=N. I just added an assert to guard that. In the devel branch, JacobiSVD already does that.
As explained in the tutorial, just do A(m,n) = value;
Not sure what you mean. matrix.svd().singularValues() returns you the vector of singular values. We don't offer yet a way to compute only one singular value, but be aware that if you start from a general matrix, computing just one singular value is almost as expensive as calculating them all. Only when you have e.g. a bidiagonal matrix, is there an optimization opportunity here.
Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list! |
Registered Member
|
yeah i'm only interested in SVD because my i'm assigned to compute the matrix using SVD ok thanks for your reply
|
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]