[eigen] MathFunctions.h patch

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


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); }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/