MAINT: casting errstate for NumPy 1.24
authorTyler Reddy <tyler.je.reddy@gmail.com>
Tue, 20 Dec 2022 03:22:21 +0000 (20:22 -0700)
committerDrew Parsons <dparsons@debian.org>
Wed, 25 Jan 2023 14:32:10 +0000 (14:32 +0000)
commit272a00cda5df2f06eb679af6e885994e8dbca5f7
tree4b1ca48cbaf871d52f252c946cc2a2429e1dc477
parent9f77705d88fccd34309ae11e23988697f3c0e677
MAINT: casting errstate for NumPy 1.24

* Attempts to deal with the ARM-specific portion
of gh-17630 -- these issues appear to be the
result of NumPy 1.24.0 change:
https://numpy.org/devdocs/release/1.24.0-notes.html#numpy-now-gives-floating-point-errors-in-casts

* I was able to reproduce and fix the issues
in `scipy/sparse/tests/test_base` on an ARM node

* however, for `test_decomp_update` I actually saw more severe
problems when working on a Cavium ThunderX2 B0 node;
for the latter cases, I'll paste what I saw below
for some of the representative failures, but for now
I just tried to patch the less severe casting errors I see
in the CI for those tests to see if it helps (I'm hoping that
my own flavor of OpenBLAS is just throwing things off locally
and I can at least delay looking into that for now...)

```
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_d::test_neg_strides_economic_rank_p - ValueError: array must not contain infs or NaNs
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_d::test_neg_strides_rank_p - ValueError: array must not contain infs or NaNs
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_d::test_non_itemsize_strides_rank_p - ValueError: array must not contain infs or NaNs
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_d::test_non_native_byte_order_economic_rank_1 - ValueError: array must not contain infs or NaNs
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_d::test_non_unit_strides_rank_p - ValueError: array must not contain infs or NaNs
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_economic_rank_p - AssertionError:
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_d::test_non_native_byte_order_rank_1 - ValueError: array must not contain infs or NaNs
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_Mx1_economic_rank_p - AssertionError:
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_economic_rank_1 - AssertionError:
```

Gbp-Pq: Name 0013-MAINT-casting-errstate-for-NumPy-1.24.patch
scipy/linalg/tests/test_decomp_update.py
scipy/sparse/tests/test_base.py