mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
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:
parent
2044084979
commit
352f1422d3
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user