Re: [eigen] "May be used uninitialized" warning...

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


> that one gets compiling something like:
>
> int main()
> {
>        Eigen::Matrix<double,4,4>  M;
>        Eigen::EigenSolver< Eigen::Matrix<double,4,4> > es(M, true);
>        return 0;
> }

This code is computing the eigendecomposition of an uninitialized
matrix M. Eigen Matrix default constructors leave the coefficients
uninitialized. So of course this warning is legitimate, but the
problem is in your code!

Benoit



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/