[Numpy-discussion] Unexpected return values for np.mod with x2=np.inf and similar

2024-06-08 Thread jesse . livezey
Hi all, I ran into an odd edge-case with np.mod and was wondering if this is the expected behavior, and if so why. This is on a fresh install of python 3.10.14 with numpy 1.26.4 from conda-forge. >>> import numpy as np # I have a hard time coming up with a rationale for why 2 of these produce

[Numpy-discussion] ENH: Adds cross2d to core and linalg (with API compatibility) #26640

2024-06-08 Thread Ben Woodruff
At the community meeting on Wednesday, we discussed adding `cross2d` as a new function, partly because of the deprecation of 2d arrays in `cross` (two issues are linked in the PR). Whether or not this is the right approach to take is something we want to have a bigger discussion about. One optio