Remove inf local variable.

Apparently `inf` is a macro on iOS for `std::numeric_limits<T>::infinity()`,
causing a compile error here. We don't need the local anyways since it's
only used in one spot.
This commit is contained in:
Antonio Sanchez 2021-01-12 10:33:15 -08:00
parent 2044084979
commit 352f1422d3

View File

@ -132,8 +132,7 @@ EIGEN_DEVICE_FUNC std::complex<T> complex_sqrt(const std::complex<T>& z) {
// Special case of isinf(y)
if ((numext::isinf)(y)) {
const T inf = std::numeric_limits<T>::infinity();
return std::complex<T>(inf, y);
return std::complex<T>(std::numeric_limits<T>::infinity(), y);
}
T w = numext::sqrt(cst_half * (numext::abs(x) + numext::abs(z)));