Fix matrix coercion with numpy 2.1#38683
Conversation
|
Is it compatible with numpy 2.0? |
works locally, I see some CI issues though |
|
Should it be |
|
OK, I have read the manual and now I understand your patch. |
|
OK, I see the issue is incompatibility with numpy 1, which is still shipped in sage-the-distro. Let's try default to |
|
Works locally now with 2.1, 2.0 and 1.26 |
|
Documentation preview for this PR (built with commit 8e2b65e; changes) is ready! 🎉 |
|
Just come across this. While this fixes the tests, it isn't really correct:
A fix is provided in #39152 . Maybe someone can take a look? |
numpy 2.1 requires a
copyargument fornumpy.array. Fixes test failures with numpy 2.1: