Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jnp.matrix_transpose() and jax.Array.mT #16117

Merged
merged 2 commits into from
May 25, 2023

Conversation

jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented May 24, 2023

This is an API proposed by the Python Array API Standard (https://data-apis.org/array-api/2022.12/). It's lightweight enough that there's hardly any downside to supporting it in JAX.

Related to #16099

@jakevdp jakevdp requested a review from hawkinsp May 24, 2023 22:21
@jakevdp jakevdp self-assigned this May 24, 2023
@jakevdp jakevdp force-pushed the matrix-transpose branch from 77ce61b to 9ed77bd Compare May 24, 2023 22:36
Copy link
Collaborator

@hawkinsp hawkinsp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jax/_src/numpy/lax_numpy.py Outdated Show resolved Hide resolved
@google-ml-butler google-ml-butler bot added kokoro:force-run pull ready Ready for copybara import and testing labels May 25, 2023
jakevdp added 2 commits May 25, 2023 09:02
This is an API proposed by the Python Array API Standard (https://data-apis.org/array-api/2022.12/). It's lightweight enough that there's hardly any downside to supporting it in JAX.
@jakevdp jakevdp force-pushed the matrix-transpose branch from 9ed77bd to 222b951 Compare May 25, 2023 16:32
@jakevdp
Copy link
Collaborator Author

jakevdp commented May 25, 2023

Thanks - I added a second commit using mT in the linalg code.

@copybara-service copybara-service bot merged commit 24928a5 into jax-ml:main May 25, 2023
@jakevdp jakevdp deleted the matrix-transpose branch May 25, 2023 17:10
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.

3 participants