Re: [eigen] MathFunctions.h patch |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
Benoit Jacob wrote:
Just a pedantic note. There are two square roots of real numbers too. Conventionally, sqrt(4) returns 2, not -2.It is on purpose that we excluded sqrt for complex numbers: - there is no canonical choice between the 2 determinations of the square root.
Returning the root in the right half plane (non-negative real) would seem a logical generalization of this convention.
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |