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

WIP: ENH: linalg: add wrapper for ?pbsvx #11985

Closed
wants to merge 8 commits into from

Conversation

Kai-Striega
Copy link
Member

Reference issue

Closes issue #11616

What does this implement/fix?

This PR adds a python wrapper for the LAPACK functions {d,s,c,z}pbsvx. These functions solve the linear system of equations Ax = b where A is a Symmetric/Hermitian matrix.

Additional information

?pbsvx comes from a more recent version of lapack than our current minimum. It should therefore not yet be merged.

This PR is missing tests with equed='Y'. This test requires A to be multiplied by some scaling factor s i.e. A = diag(s) @ A @ diag(s). The problem I'm having is how do I best generate s? If I were to use a random s, the resultant matrix is (almost certainly) no longer hermitian alternatively I could use ?geequb this returns row, column factors, in that case, how should I convert the row, col factors to s?

@Kai-Striega Kai-Striega changed the title Lapack support pbsvx WIP: Lapack support pbsvx May 1, 2020
@Kai-Striega Kai-Striega changed the title WIP: Lapack support pbsvx WIP: Add wrapper for ?pbsvx May 1, 2020
@Kai-Striega Kai-Striega added the enhancement A new feature or improvement label May 1, 2020
@ilayn
Copy link
Member

ilayn commented May 1, 2020

The problem I'm having is how do I best generate s?

You can pass it through matrix_balance with permute=False and separate=True

@ilayn
Copy link
Member

ilayn commented May 1, 2020

Ah nevermind it's looking for an identical scaling on both sides. Then yes sy/heequb can be used now that we fixed it.

@lucascolley
Copy link
Member

@mdhaber @Kai-Striega I assume that this is abandoned as the corresponding issue was closed as not planned. Please reopen if I'm mistaken

@lucascolley lucascolley changed the title WIP: Add wrapper for ?pbsvx WIP: ENH: linalg: add wrapper for ?pbsvx Mar 14, 2024
@Kai-Striega Kai-Striega deleted the lapack_support_pbsvx branch March 14, 2024 21:40
@Kai-Striega
Copy link
Member Author

@lucascolley Yes, I think this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature or improvement scipy.linalg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants