diff --git a/Eigen/src/Core/arch/CUDA/Complex.h b/Eigen/src/Core/arch/CUDA/Complex.h index ab0207cac..df5a3c2a4 100644 --- a/Eigen/src/Core/arch/CUDA/Complex.h +++ b/Eigen/src/Core/arch/CUDA/Complex.h @@ -94,6 +94,8 @@ template struct scalar_quotient_op, const std: template struct scalar_quotient_op, std::complex > : scalar_quotient_op, const std::complex > {}; +// Complex sqrt is already specialized on Windows. +#if EIGEN_COMP_MSVC == 0 template struct sqrt_impl > { @@ -103,6 +105,7 @@ struct sqrt_impl > return complex_sqrt(x); } }; +#endif } // namespace internal } // namespace Eigen