Re: [eigen] EIGEN_INITIALIZE_MATRICES_BY_NAN? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] EIGEN_INITIALIZE_MATRICES_BY_NAN?
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Thu, 19 Apr 2012 16:43:52 -0400
- Cc: Rhys Ulerich <rhys.ulerich@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=HQ5lgIpaV7dz+Q5LQ+iBpbXYZRdJjagE9qLktbVKgfI=; b=HrsuNytSfshLcjCBu0z38wce/+V+8dHMOLw8adG3oytYGif/b4Lp9FNjli65Tnba/B 4Ml9q5sBG9UaTCwumtS76efNEVvZ2hO9zsOkj6UZywZOkndN28RTImK5sfDdNmh/WIeN 8PMLUyWKA6Y19Vl85I/CKOzTzH1xAY+qJf6+bkiKDj49XuFS2hQL7uJKvoEJV8G24D9V WnbHvFuSdihUCQkP8KIJSh7mfMfZedd3sKrNTLsqyp9aTVYeO0xr7ir2YmKLHeA1Ba/D zSuoqjtIBSIJs7wWXboRJZUtZ0TGfrwtVZSA4oRNzDJvDSY528brMe+qiWOYOJktoWxi QdlQ==
You could have EIGEN_INITIALIZE_MATRICES_TO(value) though.
2012/4/19 Gael Guennebaud <gael.guennebaud@xxxxxxxxx>:
> Is valgrind not enough to detect use of uninitialized values?
>
> In my opinion we already have too many compilation options that
> changes the behavior of Eigen, and I'd like to keep their number to a
> minimum.
>
> gael
>
> On Thu, Apr 19, 2012 at 9:37 PM, Radu B. Rusu <radu.b.rusu@xxxxxxxxx> wrote:
>> +1. That looks like a useful feature.
>>
>> Cheers,
>> Radu.
>>
>>
>> On 04/19/2012 12:35 PM, Rhys Ulerich wrote:
>>>
>>> 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
>>>
>>>
>>
>>
>
>