[eigen] New EIGEN_INITIALIZE_MATRICES_BY_NAN option |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: [eigen] New EIGEN_INITIALIZE_MATRICES_BY_NAN option
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Thu, 7 Feb 2013 18:13:43 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=IG9jzvStD68eCxrrX1mpOdt7pLk+W7BMNV7BhuRY0po=; b=BObm610VT0HHvIbODGlnYsT/qCdLEB+fq3oBrIjJ4sjJPta2gIWi25xCLW1RwVPUwn BA+keY6ceZ6OQpxMTP23XN9Po4PkwSkY6ysLXX8WOoP/RiiRxK0xXnrf5q7scxkpY41f 2q5v9kwhthdehzH+SeHmHmDGWZR2RstuNIkeiGis1a7H6x0lVEb7P1ug/00uAg18IBQI Br6711ekYn5hSRSBH+O4xMhaR6b//9h8n2bNjCffK5InnnrutKuXlDFdf8aP/i6q3cmN VONdPPBlgE5hC57G4ZFFFSm89oCnYla0qvyXTvHV5iszfv+MbehZvqxGVKndyC/+UvVb qVfQ==
Hi,
I known I should have asked before, but even though I'm not a fan of
compilation options, I've still added a new one
(EIGEN_INITIALIZE_MATRICES_BY_NAN) that, like
EIGEN_INITIALIZE_MATRICES_BY_ZERO, permits to initialize the value of
matrices and arrays to NaN. As the doc says:
"This option is especially useful for debugging purpose, though a
memory tool like valgring is preferable."
It was suggested there:
http://forum.kde.org/viewtopic.php?f=74&t=109902 and I found this one
more useful than EIGEN_INITIALIZE_MATRICES_BY_ZERO, and maybe it could
even be enabled by default in our unit tests.
If you disagree (for this addition and/or to make it the default in
our unit test), it's still time!
That's all!
gael