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

Refactorization example #53

Closed
IdRatherBeCoding opened this issue Jul 17, 2024 · 3 comments · Fixed by #56
Closed

Refactorization example #53

IdRatherBeCoding opened this issue Jul 17, 2024 · 3 comments · Fixed by #56

Comments

@IdRatherBeCoding
Copy link

IdRatherBeCoding commented Jul 17, 2024

I've found the library really useful, thank you. However, I cannot work out how to do a refactorization. How can I update the solver by factorizing a matrix with the same sparsity pattern but different values? Are you available to provide an example of this?

EDIT: I can see that the examples do indeed show how to reuse the symbolic analysis and refactor. I expected to see use of CUDSS_PHASE_REFACTORIZATION for phase "refactorization". Is that not required?

@amontoison
Copy link
Member

Hi @IdRatherBeCoding,
You can find examples in the README.
It's in-place LU, LDL' and Cholesky.

@amontoison
Copy link
Member

CUDSS_PHASE_REFACTORIZATION is only relevant for a specific algorithm of the LU decomposition, otherwise you have the same bahavior with CUDSS_PHASE_FACTORIZATION.

@amontoison
Copy link
Member

@IdRatherBeCoding
I checked the documentation and you're right that using "refactorization" is more relevant.
In many cases it's equivalent to "factorization" but it could change in future releases:
https://docs.nvidia.com/cuda/cudss/types.html#cudssphase-t

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 a pull request may close this issue.

2 participants