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

JacobiSVD (3.0-beta2)

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

JacobiSVD (3.0-beta2)

Mon Oct 18, 2010 9:36 am
Hi,
I'm testing the 3.0-beta2 version, but I have a problem with JacobiSVD class.
I also tried the example written here: http://eigen.tuxfamily.org/dox-devel/cl ... biSVD.html
I receive these warnings (with Visual Studio 2008):

Code: Select all
1>c:\program files\microsoft visual studio 9.0\vc\mysdk\include\eigen\src/SVD/JacobiSVD.h(435) : warning C4800: 'unsigned int' : forcing value to bool 'true' or 'false' (performance warning)
1>        c:\program files\microsoft visual studio 9.0\vc\mysdk\include\eigen\src/SVD/JacobiSVD.h(431) : while compiling class template member function 'void Eigen::JacobiSVD<_MatrixType>::allocate(__w64 int,__w64 int,unsigned int)'
1>        with
1>        [
1>            _MatrixType=Eigen::MatrixXf
1>        ]
1>        c:\program files\microsoft visual studio 9.0\vc\mysdk\include\eigen\src/SVD/JacobiSVD.h(542) : while compiling class template member function 'Eigen::JacobiSVD<_MatrixType> &Eigen::JacobiSVD<_MatrixType>::compute(const Eigen::Matrix<_Scalar,_Rows,_Cols> &,unsigned int)'
1>        with
1>        [
1>            _MatrixType=Eigen::MatrixXf,
1>            _Scalar=float,
1>            _Rows=-1,
1>            _Cols=-1
1>        ]
1>        .\Source\main.cpp(304) : see reference to class template instantiation 'Eigen::JacobiSVD<_MatrixType>' being compiled
1>        with
1>        [
1>            _MatrixType=Eigen::MatrixXf
1>        ]
1>c:\program files\microsoft visual studio 9.0\vc\mysdk\include\eigen\src/SVD/JacobiSVD.h(436) : warning C4800: 'unsigned int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\program files\microsoft visual studio 9.0\vc\mysdk\include\eigen\src/SVD/JacobiSVD.h(437) : warning C4800: 'unsigned int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\program files\microsoft visual studio 9.0\vc\mysdk\include\eigen\src/SVD/JacobiSVD.h(438) : warning C4800: 'unsigned int' : forcing value to bool 'true' or 'false' (performance warning)


How can I resolve this problem?
Thanks in advance! =)
User avatar
bjacob
Registered Member
Posts
658
Karma
3

Re: JacobiSVD (3.0-beta2)

Mon Oct 18, 2010 10:55 am
Thanks, warning fixed.


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

Re: JacobiSVD (3.0-beta2)

Mon Oct 18, 2010 1:37 pm
I still have the warnings... :(
Anyway, I resolved using this code:

Code: Select all
  m_computeFullU = (computationOptions & ComputeFullU) != 0;
  m_computeThinU = (computationOptions & ComputeThinU) != 0;
  m_computeFullV = (computationOptions & ComputeFullV) != 0;
  m_computeThinV = (computationOptions & ComputeThinV) != 0;


Thank you! :)
User avatar
bjacob
Registered Member
Posts
658
Karma
3

Re: JacobiSVD (3.0-beta2)

Mon Oct 18, 2010 1:45 pm
This is a seriously broken warning. I'm adopting your fix.


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], Evergrowing, Google [Bot], rockscient