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

Introduce AbstractSparseFactorization and AbstractDenseFactorization #526

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

j-fu
Copy link
Contributor

@j-fu j-fu commented Aug 19, 2024

Both are subtypes of AbstractFactorization.

This allows to set default_alias_A=true for sparse factorizations (which just cannot overwrite A anyway). This allows to create the cache parametrized with the original matrix type and we can use reinit!(cache;A) or cache.A=A if A is an AbstractSparseMatrixCSC, like with Krylov solvers.

Before, due to #525, these methods would require a SparseMatrixCSC, even if the Problem was created with a AbstractSparseMatrixCSC.

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

Both are subtypes of AbstractFactorization.

This allows to set default_alias_A=true for sparse factorizations (which
just cannot overwrite A anyway). This allows to create the cache parametrized with
the original matrix type and we can use `reinit!(cache;A)`
or `cache.A=A` if `A` is an AbstractSparseMatrixCSC, like with Krylov solvers.

Before, due to SciML#525, these methods would require a SparseMatrixCSC,
even if the Problem was created with a AbstractSparseMatrixCSC.
@ChrisRackauckas ChrisRackauckas merged commit 1c30db0 into SciML:main Aug 19, 2024
9 of 18 checks passed
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.

2 participants