[eigen] EIGEN_INITIALIZE_MATRICES_BY_NAN?

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


Any thoughts on having an option like
EIGEN_INITIALIZE_MATRICES_BY_ZERO called
EIGEN_INITIALIZE_MATRICES_BY_NAN which does what it suggests?  It'd be
handy for tracking down algorithmic problems due to uninitialized data
being used.  Only hiccups I can see would be initializing the real-
and imaginary portion when NumTraits<Scalar>::IsComplex holds and/or
using numeric_limits<NumTraits<Scalar>::Real>::has_quiet_NaN to
determine when it could be performed at all.

- Rhys



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