Re: [eigen] MathFunctions.h patch |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] MathFunctions.h patch
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Thu, 7 Jan 2010 17:37:53 -0500
- 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=mYFdszC4tP73HpMwprYg45pySwHPCeZSMXP4bZoLx8I=; b=uPFHeSIXvav6lXF2MrLjqFdmItY/I5wHEGzKmMLA+umh5UvszuhuzhQiTtGi8Syzu7 kqEz+2wbFWS5xBKS6RthfJ4Ad/zSXZ+WfCBTFU9zVXWZLgw2YP8du+ADdA/gYciv47iC IhezROb0Pm0Vo8XeANT3ar9XRd11ALE9NzTSE=
- 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=nmH4Z9vSlLUoqY+umNg4z5WtK70SmDX781+mCMCpZKQI1PC96qczGFpwsmxV1BcqEL DNeDa3g1Bpjy6zq3yu0bk4E11gmUadxLXOB4VFtJJyptcw7n77vtxWJE0tiexKbM80i3 ApvG79hRdP6HHpaOfIGmlXA343QAmORjL9Ud8=
Now you got me started on pedantry!
Indeed real numbers are no better than complex numbers; but the subset
of *nonnegative* real numbers is much better: for any nonnegative real
number, there is a unique nonnegative square root.
Benoit
2010/1/7 Mark Borgerding <mark@xxxxxxxxxxxxxx>:
> Benoit Jacob wrote:
>>
>> It is on purpose that we excluded sqrt for complex numbers:
>> - there is no canonical choice between the 2 determinations of the square
>> root.
>
> Just a pedantic note. There are two square roots of real numbers too.
> Conventionally, sqrt(4) returns 2, not -2.
>
> Returning the root in the right half plane (non-negative real) would seem a
> logical generalization of this convention.
>
>
>
>