Welcome to the KDE Community Forums, the official forum board for KDE.
You are currently viewing the forums as an unregistered user. Registration allows you to post and discuss topics, receive private messages, vote on ideas, subscribe to topics and many such great features. Registration is a simple process and completely free. So register now and be a part of the community!

SVD in devel branch



spud

Registered Member

Posts: 2

Karma: 0

SVD in devel branch

Post 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?

Moderator User avatar

bjacob

Moderator

Posts: 293

Karma: 0

France

Re: SVD in devel branch

Post 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

Post Wed Nov 04, 2009 5:26 pm

Works like a charm ;)

Moderator User avatar

bjacob

Moderator

Posts: 293

Karma: 0

France

Re: SVD in devel branch

Post 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!


Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests