Skip to content

Base types for preconditioner and solver #1798

Answered by upsj
Fabian188 asked this question in Q&A
Discussion options

You must be logged in to vote

First we need to differentiate between the configuration of a solver/preconditioner and an actual instance based on a matrix. A solver or preconditioner configuration can be represented by a LinOpFactory, while a solver/preconditioner on a specific matrix is represented by a LinOp. The preconditioner configuration is part of the overall solver configuration, so it sounds like you should operate on the LinOpFactory level rather than on the LinOp level. If you want to configure the preconditioner for an unknown solver, you need to wrap that solver itself in a factory function that takes a preconditioner LinOpFactory and returns the solver LinOpFactory.

If you are just looking for an easy wa…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Fabian188
Comment options

Answer selected by Fabian188
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants