Skip to content

Fixed LinSolverDirectKLU incorrectly assuming CSC format #254

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

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

shakedregev
Copy link
Collaborator

Solves issue 251.

I added a check on the sparse format of the matrix $A$.
If CSC, the solver resumes normally, calling klu_solve
If CSR, the solver calls klu_tsolve and solves a system with $A^T$. The identity $\mathrm{csc}(A) = \mathrm{csr}(A^T)$ guarantees the results are equal, up to numerical precision.

Note that the tolerance for the test was smaller than numerical precision. It had to be changed to numerical precision for the test to pass.

@shakedregev shakedregev requested review from pelesh and Copilot April 7, 2025 21:24
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Co-authored-by: Copilot <[email protected]>
@shakedregev shakedregev marked this pull request as draft April 8, 2025 14:51
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