[eigen] MathFunctions.h patch |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] MathFunctions.h patch
- From: Trevor Irons <trevorirons@xxxxxxxxx>
- Date: Thu, 7 Jan 2010 13:56:48 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=dXpreu9Pasi+YwkfSoYyf9bMNGhrFTnIJmrhogdGhc8=; b=ROBKMgbigQmUzr6CGZr/AXII+8sY7EAjoNJJk7JqzJYueAXPm4VeANWTabnowQFpGd BvdgMN5QZSy8t9DfXFnIQzMQHo9a2sZ9YPylj+IUr4qOe4WxBsBtvJmYpoJSswdS+pCw lMC+aI/kfDrxiCqFl0LPu0jLNT3fIFq1OiJnk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sY186bUcuU7lPq+E714lcl2Z3I1t3OqDk4hHUIll92ACHj9ZURXUdIl4fl6RAwzN+t bit2fZTIUUq9lSfd5EFoc5oZ/36Wr0cIdISzCQSMd1uTB2yuwDSW8mmuNzcT3XdMNT/L eoA4qHwRIqRmxmcr3nY1WCFLZaYeA+to0tvUY=
Any problem adding the following patch, or something similiar, to MathFunctions.h to support std::complex<>.sqrt() ?
218d217
< inline std::complex<float> ei_sqrt(std::complex<float>x) { return std::sqrt(x); }
256d254
< inline std::complex<double> ei_sqrt(std::complex<double>x) { return std::sqrt(x); }
-trevor
218d217
< inline std::complex<float> ei_sqrt(std::complex<float>x) { return std::sqrt(x); }
256d254
< inline std::complex<double> ei_sqrt(std::complex<double>x) { return std::sqrt(x); }