@@ -150,7 +150,7 @@ function SciMLBase.init(prob::LinearProblem, alg::SciMLLinearSolveAlgorithm,
150150 assumptions = OperatorAssumptions (issquare (prob. A)),
151151 sensealg = LinearSolveAdjoint (),
152152 kwargs... )
153- (;A, b, u0, p) = prob
153+ (; A, b, u0, p) = prob
154154
155155 A = if alias_A || A isa SMatrix
156156 A
@@ -206,22 +206,21 @@ function SciMLBase.init(prob::LinearProblem, alg::SciMLLinearSolveAlgorithm,
206206
207207 cache = LinearCache{typeof (A), typeof (b), typeof (u0_), typeof (p), typeof (alg), Tc,
208208 typeof (Pl), typeof (Pr), typeof (reltol), typeof (assumptions. issq),
209- typeof (sensealg)}(A, b, u0_, p, alg, cacheval, isfresh, precsisfresh, Pl, Pr, abstol, reltol,
209+ typeof (sensealg)}(
210+ A, b, u0_, p, alg, cacheval, isfresh, precsisfresh, Pl, Pr, abstol, reltol,
210211 maxiters, verbose, assumptions, sensealg)
211212 return cache
212213end
213214
214-
215215function SciMLBase. reinit! (cache:: LinearCache ;
216- A = nothing ,
217- b = cache. b,
218- u = cache. u,
219- p = nothing ,
220- reinit_cache = false ,
221- reuse_precs = false )
216+ A = nothing ,
217+ b = cache. b,
218+ u = cache. u,
219+ p = nothing ,
220+ reinit_cache = false ,
221+ reuse_precs = false )
222222 (; alg, cacheval, abstol, reltol, maxiters, verbose, assumptions, sensealg) = cache
223223
224-
225224 isfresh = ! isnothing (A)
226225 precsisfresh = ! reuse_precs && (isfresh || ! isnothing (p))
227226 isfresh |= cache. isfresh
@@ -234,9 +233,11 @@ function SciMLBase.reinit!(cache::LinearCache;
234233 Pl = cache. Pl
235234 Pr = cache. Pr
236235 if reinit_cache
237- return LinearCache{typeof (A), typeof (b), typeof (u), typeof (p), typeof (alg), typeof (cacheval),
236+ return LinearCache{
237+ typeof (A), typeof (b), typeof (u), typeof (p), typeof (alg), typeof (cacheval),
238238 typeof (Pl), typeof (Pr), typeof (reltol), typeof (assumptions. issq),
239- typeof (sensealg)}(A, b, u, p, alg, cacheval, precsisfresh, isfresh, Pl, Pr, abstol, reltol,
239+ typeof (sensealg)}(
240+ A, b, u, p, alg, cacheval, precsisfresh, isfresh, Pl, Pr, abstol, reltol,
240241 maxiters, verbose, assumptions, sensealg)
241242 else
242243 cache. A = A
0 commit comments