Skip to content

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

Closed
vlad-perevezentsev wants to merge 15 commits into
masterfrom
impl_solve
Closed

dublicate: Add dpnp.linalg.solve() function#1578
vlad-perevezentsev wants to merge 15 commits into
masterfrom
impl_solve

Conversation

@vlad-perevezentsev

Copy link
Copy Markdown
Contributor

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 antonwolfyOctober 6, 2023 12:34
@github-actions

github-actionsBot commented Oct 6, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown
ContributorAuthor

This PR is a duplicate of #1598

@vlad-perevezentsevvlad-perevezentsev changed the title Add dpnp.linalg.solve() functiondublicate: Add dpnp.linalg.solve() functionOct 17, 2023
Sign up for freeto 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

@vlad-perevezentsev