Skip to content

Conversation

vlad-perevezentsev
Copy link
Contributor

This PR suggests adding new implementation of dpnp.matrix_transpose() function and new .mT attribute for dpnp.array that was implemented in Numpy 2.0.

This function is Array API compatible:

array_api_tests/test_linalg.py::test_matrix_transpose PASSED  
  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you filing the PR as a draft?

Copy link
Contributor

github-actions bot commented Oct 8, 2024

View rendered docs @ https://intelpython.github.io/dpnp/index.html

@vtavana
Copy link
Contributor

vtavana commented Oct 9, 2024

There is also numpy.linalg.matrix_tranpose in NumPy 2.0. Could you add it in this PR as well?

Copy link
Contributor

@vtavana vtavana left a comment

Choose a reason for hiding this comment

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

Thank you, @vlad-perevezentsev!

Copy link
Contributor

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

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

@vlad-perevezentsev vlad-perevezentsev merged commit ac3ab04 into master Oct 15, 2024
46 checks passed
@vlad-perevezentsev vlad-perevezentsev deleted the impl_matrix_transpose branch October 15, 2024 11:35
vtavana pushed a commit that referenced this pull request Oct 28, 2024
…or dpnp.array (#2095)

* Add implementaion of dpnp.matrix_transpose()

* Add TestMatrixtranspose to dpnp tests

* Add .mT attribute for ndarray

* Add tests for .mT arrribute

* Add matrix_transpose() for dpnp.linalg module

* Add test for dpnp.linalg.matrix_transpose()

* Expand docs for .mT attribute

* Reuse dpctl for matrix_transpose

* Update dpnp.matrix_transpose()

---------

Co-authored-by: Anton <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants