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!
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 with eigen 2.0.7
4 posts • Page 1 of 1
SVD with eigen 2.0.7
I work with 2.0.5 and today I try to update to 2.0.7
The following code work with eigen 2.0.5 and fail with eigen 2.0.7
SVD<MatrixXd> m_matSVD;
At compilation I receive:
error C2512: 'Eigen::SVD<MatrixType>' : no appropriate default constructor available
1> with
1> [
1> MatrixType=Eigen::MatrixXd
1> ]
I try with Visual Studio C++ express 8.0
and with Visual Studio professionnal C++ 8.0 the student version.
Same error on each compiler.
The following code work with eigen 2.0.5 and fail with eigen 2.0.7
SVD<MatrixXd> m_matSVD;
At compilation I receive:
error C2512: 'Eigen::SVD<MatrixType>' : no appropriate default constructor available
1> with
1> [
1> MatrixType=Eigen::MatrixXd
1> ]
I try with Visual Studio C++ express 8.0
and with Visual Studio professionnal C++ 8.0 the student version.
Same error on each compiler.
Re: SVD with eigen 2.0.7
This is very surprising: the only difference in SVD between 2.0.5 and 2.0.7 is that this assert was added at line 110 in the compute() method:
By the way, in Eigen 2.0 (2.0.5 and 2.0.7), we didn't write a default ctor for SVD so it can only be using a compiler-generated one.
Try this:
* remove the assert. Does it make a difference? If yes, can you explain that? I'd be puzzled.
* add a trivial default ctor, just SVD() {}. Does it help? If yes, we sure can include that code.
- Code: Select all
ei_assert(m>=n && "In Eigen 2.0, SVD only works for MxN matrices with M>=N. Sorry!");
By the way, in Eigen 2.0 (2.0.5 and 2.0.7), we didn't write a default ctor for SVD so it can only be using a compiler-generated one.
Try this:
* remove the assert. Does it make a difference? If yes, can you explain that? I'd be puzzled.
* add a trivial default ctor, just SVD() {}. Does it help? If yes, we sure can include that code.
Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
Have a serious interest in Eigen? Then join the mailing list!
Re: SVD with eigen 2.0.7
Can you try the 2.0 branch, i've added a default ctor.
If it works for you, i release 208 now (there's another major bug too)
If it works for you, i release 208 now (there's another major bug too)
Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
Have a serious interest in Eigen? Then join the mailing list!
Re: SVD with eigen 2.0.7
Thank's for help. All build is ok with the add of SVD() {}.
And eigen 2_0_9 is ok with first tests.
And eigen 2_0_9 is ok with first tests.
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests

Search
FAQ
Policy
KDE.org
KDE.news
Planet KDE
More 
Windows XP