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

Implement of dpnp.linalg.slogdet() #1607

Merged
merged 66 commits into from
Jan 12, 2024
Merged

Implement of dpnp.linalg.slogdet() #1607

merged 66 commits into from
Jan 12, 2024

Conversation

vlad-perevezentsev
Copy link
Collaborator

@vlad-perevezentsev vlad-perevezentsev commented Oct 23, 2023

This PR

  1. adds a function dpnp.linalg.slogdet() to get sign and logarithm of the determinant of an input array and a private function dpnp.linalg._lu_factor() to compute the LU factorization of a general n x n
    input matrix using oneapi::mkl::lapack::getrf and oneapi::mkl::lapack::getrf_batch.
    The implementation is written as an extension of pybind11 over the necessary LAPACK functions.

  2. updates the implementation of the dpnp.linalg.det() function using dpnp.linalg.slogdet()

  3. adds support the complex data type for dpnp.diagonal() function

  • 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?

@vlad-perevezentsev vlad-perevezentsev self-assigned this Oct 23, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 23, 2023

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

@vlad-perevezentsev vlad-perevezentsev changed the title Implement of dpnp.linalg._lu_factor() Implement of dpnp.linalg.slogdet() Oct 31, 2023
dpnp/backend/extensions/lapack/getrf.cpp Show resolved Hide resolved
dpnp/backend/extensions/lapack/getrf.cpp Show resolved Hide resolved
dpnp/backend/extensions/lapack/getrf.cpp Show resolved Hide resolved
dpnp/linalg/dpnp_utils_linalg.py Show resolved Hide resolved
dpnp/linalg/dpnp_utils_linalg.py Show resolved Hide resolved
dpnp/linalg/dpnp_utils_linalg.py Outdated Show resolved Hide resolved
tests/test_linalg.py Outdated Show resolved Hide resolved
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.

Thank you @vlad-perevezentsev LGTM!

@antonwolfy antonwolfy merged commit 7e54eb8 into master Jan 12, 2024
41 of 45 checks passed
@antonwolfy antonwolfy deleted the impl_lu_factor branch January 12, 2024 19:00
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