This forum has been archived. All content is frozen. Please use KDE Discuss instead.

SVD in devel branch

Tags: None
(comma "," separated)
spud
Registered Member
Posts
2
Karma
0

SVD in devel branch

Wed Nov 04, 2009 4:03 pm
This example fails with an assertion in the devel branch.
Code: Select all
bool test(int m=100, int n=10)
{
   MatrixXd A = MatrixXd::Random(m, n);
   VectorXd b(m), x(n);
   return A.svd().solve(b, &x);
}

Is there any workaround for this?
User avatar
bjacob
Registered Member
Posts
658
Karma
3

Re: SVD in devel branch

Wed Nov 04, 2009 4:47 pm
Thanks for the report, i committed a tentative fix, can you try (in the default branch)?


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
spud
Registered Member
Posts
2
Karma
0

Re: SVD in devel branch

Wed Nov 04, 2009 5:26 pm
Works like a charm ;)
User avatar
bjacob
Registered Member
Posts
658
Karma
3

Re: SVD in devel branch

Wed Nov 04, 2009 6:34 pm
Thanks for the feedback. Hint: do check that the result is sane (A*x approximately equal to b) because obviously our unit-test here is lacking, otherwise this bug wouldn't have existed in the first place.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]