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

Fix the interface of MC77 #206

Merged
merged 1 commit into from
Jan 30, 2024
Merged

Conversation

amontoison
Copy link
Member

@frapac @michel2323
I fixed many bugs in the Julia interface of MC77.
It should work fine now.
To solve a scaled linear system, you just need:

Dr, Dc = mc77(A_cpu, 0)
inv_Dr = Diagonal(1.0 ./ Dr)
inv_Dc = Diagonal(1.0 ./ Dc)
As = inv_Dr * A * inv_Dc
bs = inv_Dr * b
xs = As \ bs
x = inv_Dc * xs

I checked the algorithm and we should be able to port this scaling on GPU if it performs well.

@amontoison amontoison merged commit c051998 into JuliaSmoothOptimizers:main Jan 30, 2024
1 of 6 checks passed
@amontoison amontoison deleted the mc77 branch January 30, 2024 01:01
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