@@ -150,7 +150,7 @@ function SciMLBase.init(prob::LinearProblem, alg::SciMLLinearSolveAlgorithm,
150
150
assumptions = OperatorAssumptions (issquare (prob. A)),
151
151
sensealg = LinearSolveAdjoint (),
152
152
kwargs... )
153
- (;A, b, u0, p) = prob
153
+ (; A, b, u0, p) = prob
154
154
155
155
A = if alias_A || A isa SMatrix
156
156
A
@@ -206,22 +206,21 @@ function SciMLBase.init(prob::LinearProblem, alg::SciMLLinearSolveAlgorithm,
206
206
207
207
cache = LinearCache{typeof (A), typeof (b), typeof (u0_), typeof (p), typeof (alg), Tc,
208
208
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,
210
211
maxiters, verbose, assumptions, sensealg)
211
212
return cache
212
213
end
213
214
214
-
215
215
function 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 )
222
222
(; alg, cacheval, abstol, reltol, maxiters, verbose, assumptions, sensealg) = cache
223
223
224
-
225
224
isfresh = ! isnothing (A)
226
225
precsisfresh = ! reuse_precs && (isfresh || ! isnothing (p))
227
226
isfresh |= cache. isfresh
@@ -234,9 +233,11 @@ function SciMLBase.reinit!(cache::LinearCache;
234
233
Pl = cache. Pl
235
234
Pr = cache. Pr
236
235
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),
238
238
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,
240
241
maxiters, verbose, assumptions, sensealg)
241
242
else
242
243
cache. A = A
0 commit comments