We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Now that we have different preconditioning mechanisms and solvers, it's time to polish the generic solve interface
solve
oettli
function _default_precondition(A, method::AbstractSolver) # .... end # specific default preconditioning methods function _default_precondition(A, method::GaussElimination) if is_sdd_matrix || is_M_matrix return NoPrecondition() else return InverseMidpoint() end end function _default_solver() GaussEliminiation() end function solve(A, b, solver::AbstractSolver=_default_solver(), precondition::AbstractPrecondition=_default_precondition(A, method)) # precondition Ap, bp = precondition(A, b) # compute solution return solver(Ap, bp) end
The text was updated successfully, but these errors were encountered:
fixed in the above linked PRs
Sorry, something went wrong.
No branches or pull requests
Now that we have different preconditioning mechanisms and solvers, it's time to polish the generic
solve
interfaceoettli
I guess that should also be a solver like the others #41The text was updated successfully, but these errors were encountered: