Skip to content

Add dpnp.linalg.eigvalsh() implementation #1714

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

Merged
merged 40 commits into from
Apr 3, 2024
Merged

Add dpnp.linalg.eigvalsh() implementation #1714

merged 40 commits into from
Apr 3, 2024

Conversation

vlad-perevezentsev
Copy link
Collaborator

This PR adds a new dpnp.linalg.eigvalsh() function to calculate the eigenvalues of a complex Hermitian or real symmetric matrix using dpnp.linalg.eigh()
Also the PR adds missing tests for dpnp.linalg.eigh slightly changes its implementation and its docstrings

  • 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 Feb 15, 2024

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

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.

@antonwolfy antonwolfy merged commit 42f2644 into master Apr 3, 2024
@antonwolfy antonwolfy deleted the impl_eigvalsh branch April 3, 2024 14:55
github-actions bot added a commit to antonwolfy/dpnp that referenced this pull request Apr 4, 2024
* Add dpnp.linalg.eigvalsh() impl

* Update cupy tests for dpnp.linalg.eigvalsh func

* Small update dpnp.linalg.eigh

* Update cupy tests for dpnp.linalg.eigh

* Add test_eigenvalue_symm to check queue and usm_type

* Update test_linalg.py

* Optimize dpnp_eigh logic for eigen_mode='N'

* Add a logic with a.size==0 to dpnp_eigh

* Update docstrings for eigh and eigvalsh

* Update cupy tests

* Add support for both registers to UPLO

* Call dpnp_eigh instead of dpnp_eigvalsh

* Add get_symm_herm_numpy_array func to helper.py

* Update dpnp tests

* Add generate_random_numpy_array func to helper.py

* Remove use_seed parameter from generate_random_numpy_array

* Address remarks

* Generate 4d and more array

* Support 4d and more array for dpnp_eigh

* Update TestEigenvalue

* Fix invalid UPLO test

* Make depends parameter optional in heevd.hpp

* Add a w/a for MKLD-17201

* Wait for each host_task after calling _syevd

* Update test_eigenvalues in test_linalg.py

* Update test_eigenvalue in test_sycl_queue.py

---------

Co-authored-by: Anton <[email protected]> 42f2644
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.

2 participants