diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index eddabf4b9..1ea0116b4 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -215,6 +215,7 @@ inline std::complex ei_conj(const std::complex& x) { return std::c inline float ei_abs(const std::complex& x) { return std::abs(x); } inline float ei_abs2(const std::complex& x) { return std::norm(x); } inline float ei_norm1(const std::complex &x) { return(ei_abs(x.real()) + ei_abs(x.imag())); } +inline std::complex ei_sqrt(std::complexx) { return std::sqrt(x); } inline std::complex ei_exp(std::complex x) { return std::exp(x); } inline std::complex ei_sin(std::complex x) { return std::sin(x); } inline std::complex ei_cos(std::complex x) { return std::cos(x); } @@ -252,6 +253,7 @@ inline std::complex ei_conj(const std::complex& x) { return std: inline double ei_abs(const std::complex& x) { return std::abs(x); } inline double ei_abs2(const std::complex& x) { return std::norm(x); } inline double ei_norm1(const std::complex &x) { return(ei_abs(x.real()) + ei_abs(x.imag())); } +inline std::complex ei_sqrt(std::complexx) { return std::sqrt(x); } inline std::complex ei_exp(std::complex x) { return std::exp(x); } inline std::complex ei_sin(std::complex x) { return std::sin(x); } inline std::complex ei_cos(std::complex x) { return std::cos(x); }