Closed ChrisRackauckas closed 2 years ago
Do we need ShiftedLinearProblem
if there's LinearProblem(WOperator,...)
?
We can leave that for us to figure out. @EdelmanJonathan won't handle that part.
resize!
would also be a great functionality for the cache, for example in the context of PDEs and adaptive mesh refinement.
yes, good point.
should LinearCache
also have fields for present solution u
, and iteration count iter
(set to 0 for factorizations)?
Yes
what's weights
in the third task: solve(prob,alg;reltol, abstol, weights, prec)
?
Those are the weights supposed to be used in the scaled preconditioners.
LinearProblem(A,b,p=SciMLBase.NullParameters();u0=nothing,kwargs...)
where kwargs forward to solveShiftedLinearProblem(A,b,gamma,p=SciMLBase.NullParameters();u0=nothing,kwargs...) = LinearProblem(WOperator,...)
solve(prob,alg;reltol, abstol, weights, prec)
cache = init(prob,alg; kwargs...)
wheresolve = init -> solve!(cache)
set_A!(cache,A)
set_b!(cache,b)
set_p!(cache,p)
set_prec(cache,prec)
A
,cacheval
,isfresh
,pr
, andpl
A
there.@set cache.prec = f(Val{:init}, cache)
for initializationf(cache) -> (pl,pr)
user-defined.Linear.pdf