[eigen] EIGEN_INITIALIZE_MATRICES_BY_NAN? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: Eigen development <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: [eigen] EIGEN_INITIALIZE_MATRICES_BY_NAN?
- From: Rhys Ulerich <rhys.ulerich@xxxxxxxxx>
- Date: Thu, 19 Apr 2012 14:35:54 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=mtpV2aMF5228LvpYzgTJP9pD1lvmE8GtKc9eE1WBbuM=; b=Q1mx2OdNNHL35Lvp10XL+XOkdkcPXfO14CHSQhfu8KyhVwigdvNSXbpCkcd/ygh8/Y 9OEPVicBW6QDvWVHMffKS3JCqyL5gCYzvoltBwJjGQkf8zPKGr5wvCVy8HOslUsyP0+D D9B0OrCPcJGEYa609PPDZROvT2DNNkwFzbYgy85iEAXtNnSilQfCMc2VWpufqkFpEwn1 qvfotAPOXwueOZNoIPSISPNrNK5yDFEo9rjjusloO1l0yD3dq3WtaHEss7u5Nfi75DOa CGakEJFdIDoaVtEah5XZiL83SyM5o6swyiEewSLiwTaPX9pNgLXsZsIkugWHpRoN2LKq iLjQ==
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