mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-23 14:53:13 +08:00
Revert change to allFinite(), since the new version does not work for complex numbers.
This commit is contained in:
parent
b1beba8a3e
commit
2419632cf5
@ -823,7 +823,7 @@ EIGEN_DEVICE_FUNC inline bool DenseBase<Derived>::hasNaN() const {
|
|||||||
*/
|
*/
|
||||||
template <typename Derived>
|
template <typename Derived>
|
||||||
EIGEN_DEVICE_FUNC inline bool DenseBase<Derived>::allFinite() const {
|
EIGEN_DEVICE_FUNC inline bool DenseBase<Derived>::allFinite() const {
|
||||||
return derived().cwiseAbs().cwiseTypedLesser(NumTraits<Scalar>::infinity()).all();
|
return derived().array().isFinite().all();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end namespace Eigen
|
} // end namespace Eigen
|
||||||
|
Loading…
x
Reference in New Issue
Block a user