Re: [eigen] a couple of RFCs |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] a couple of RFCs
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Fri, 14 Aug 2009 13:13:18 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=xf3TgpFxVvk9LvJbINwgJ8M2OSQZU6PfgOr524RLTAQ=; b=iUd6t2PKFvTnf04RqXZd0EzbmuYG66aaAcNnaZ/T2zFzGyp7MSML1lEqoB1+zA2Meh ttRcoCaqNuW+VD+VUrvtCIzE4KOg1eDuZ7QFghg86nl41gQa/8uEZWCfq65C0tdr0POU Xu39jpba4OIoY5sZ5GhlxjDCH1LEDhR1EQi28=
- 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=SWhkRvVUki9VajYxyr8uaDVjguaLp66Xx7SHTs0ZonZ/OvGUj9jNvmRTrGbZi5U7Sn fBhAtBIsC+rVHHwqM8SoiTK3BjGasvZ7QXrugJYfo2lTiBO9ABLulCTPWvnZqQWKixch orKFajBaPnTdiYjMQkF6hRKF5ofhyOMOrKwfE=
yes, exactly what i had in mind.
2009/8/13 Gael Guennebaud <gael.guennebaud@xxxxxxxxx>:
> yes, something like that:
>
> template<typename T> typename NumTraits<T>::Real epsilon()
> {
> return std::numeric_limits<typename NumTraits<T>::Real>::epsilon();
> }
>
> gael
>
> On Thu, Aug 13, 2009 at 9:51 PM, Benoit Jacob<jacob.benoit.1@xxxxxxxxx> wrote:
>> 2009/8/13 Gael Guennebaud <gael.guennebaud@xxxxxxxxx>:
>>> thanks for the fixes in IOFormat.
>>>
>>> about numeric_limits, I think we should use:
>>>
>>> std::numeric_limits<NumTraits<Scalar>::Real>::epsilon()
>>
>> Indeed, that does the job. But that looks complicated, sooner or later
>> we'll forget to do that and will get bug reports.... how about keeping
>> machine_epsilon<Scalar>() as a wrapper for exactly that? maybe call it
>> epsilon instead?
>>
>> Benoit
>>
>>
>>
>
>
>
> --
> Gaël Guennebaud
> Iparla - INRIA Bordeaux
> (+33)5 40 00 37 95
>
>
>