Skip to content

Fixed hypot bug on nan/inf pairings, began deprecation of non-real values#20754

Merged
copybara-service[bot] merged 1 commit into
jax-ml:mainfrom
Micky774:array-api-hypot
Apr 15, 2024
Merged

Fixed hypot bug on nan/inf pairings, began deprecation of non-real values#20754
copybara-service[bot] merged 1 commit into
jax-ml:mainfrom
Micky774:array-api-hypot

Conversation

@Micky774

@Micky774 Micky774 commented Apr 15, 2024

Copy link
Copy Markdown
Collaborator

Towards #20200

Begins deprecation of complex-valued inputs to jax.numpy.hypot. Fixes bug wherein hypot(np.inf, np.nan)=np.nan instead of the expected np.inf result as produced by numpy.hypot.

Comment thread jax/_src/numpy/ufuncs.py
@jakevdp jakevdp self-assigned this Apr 15, 2024
@Micky774 Micky774 force-pushed the array-api-hypot branch 2 times, most recently from a9ec3fc to 2abcc4a Compare April 15, 2024 17:35
@google-ml-butler google-ml-butler Bot added kokoro:force-run pull ready Ready for copybara import and testing labels Apr 15, 2024
@copybara-service copybara-service Bot merged commit 5f22b12 into jax-ml:main Apr 15, 2024
@Micky774 Micky774 deleted the array-api-hypot branch April 15, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pull ready Ready for copybara import and testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants