Skip to content

dublicate: Add dpnp.linalg.solve() function #1578

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

Closed
wants to merge 15 commits into from

Conversation

vlad-perevezentsev
Copy link
Collaborator

This PR adds a missing dpnp.linalg.solve() function to calculate the solution to the system of linear equations with a square coefficient matrix A and multiple right-hand sides using oneapi::mkl::lapack::gesv
The implementation is written as a pybind11 extension above required LAPACK functions.

import dpnp

a = dpnp.array([[1, 2], [3, 5]])
b = dpnp.array([1,2])

dpnp.linalg.solve(a,b)
# array([-1.,  1.])
  • 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 requested review from antonwolfy and removed request for antonwolfy October 6, 2023 12:34
@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2023

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

@vlad-perevezentsev vlad-perevezentsev marked this pull request as ready for review October 12, 2023 22:16
@vlad-perevezentsev
Copy link
Collaborator Author

This PR is a duplicate of #1598

@vlad-perevezentsev vlad-perevezentsev changed the title Add dpnp.linalg.solve() function dublicate: Add dpnp.linalg.solve() function Oct 17, 2023
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.

1 participant