Re: [eigen] "May be used uninitialized" warning... |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] "May be used uninitialized" warning...
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Thu, 9 Dec 2010 16:48:40 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=v+D/fHyQ4DhdPS8Ip35Qg5sCm413uMgaz4npXwaUdJk=; b=jydzTNLaX6pWZqPCpIv8iapqHeHmWPPq4vUdIpK1Jkk9BZE9XrogXmN0BoimibWRDC CjhHwssezraVEyNGzzISb+blMt92n4sHao88tkt0lDCHv/oel0EgsoKESKtzbyt7S8jL QZMbIiBbWUXtDyrXPV71gwucmPO2sB6M3PngM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=S7XNOjrK0yef/FfPXr4fgIJUgjkrcFBKdSMi9doXrANnnhxaZ7zpwpp1QiznSInV8J l/iEU3LfipAGO5gj9moAVoQw8Rx1sAy2XbCioj89p0++Hr+W8ne6tN9HwRQSroJthbAU tRZXYEUUxfItPgAJHlfqk7gGPDAQHE4augN0A=
> 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