Often the preconditioner can be defined as a function instead of a type with ldiv! method. For example, see JuliaLinearAlgebra/IterativeSolvers.jl#258. It would be nice to be able to wrap the function in a type PreconditionerFunction and pass that to iterative solvers seamlessly.
Often the preconditioner can be defined as a function instead of a type with
ldiv!method. For example, see JuliaLinearAlgebra/IterativeSolvers.jl#258. It would be nice to be able to wrap the function in a typePreconditionerFunctionand pass that to iterative solvers seamlessly.