mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-02 18:20:38 +08:00
Fix bug #480: workaround the Android NDK defining isfinite as a macro
(transplanted from 5dbdde0420ef8173656392d5bdbec701b0969361 )
This commit is contained in:
parent
32e83f6000
commit
95e3e4f865
@ -370,7 +370,7 @@ template<> struct ldlt_inplace<Lower>
|
|||||||
for (Index j = 0; j < size; j++)
|
for (Index j = 0; j < size; j++)
|
||||||
{
|
{
|
||||||
// Check for termination due to an original decomposition of low-rank
|
// Check for termination due to an original decomposition of low-rank
|
||||||
if (!isfinite(alpha))
|
if (!(isfinite)(alpha))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Update the diagonal terms
|
// Update the diagonal terms
|
||||||
|
@ -845,7 +845,7 @@ template<> struct scalar_fuzzy_impl<bool>
|
|||||||
|
|
||||||
// std::isfinite is non standard, so let's define our own version,
|
// std::isfinite is non standard, so let's define our own version,
|
||||||
// even though it is not very efficient.
|
// even though it is not very efficient.
|
||||||
template<typename T> bool isfinite(const T& x)
|
template<typename T> bool (isfinite)(const T& x)
|
||||||
{
|
{
|
||||||
return x<NumTraits<T>::highest() && x>NumTraits<T>::lowest();
|
return x<NumTraits<T>::highest() && x>NumTraits<T>::lowest();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user