@@ -29,19 +29,19 @@ function scalar_nlsolve_ad(prob, alg, args...; kwargs...)
2929end
3030
3131function SciMLBase. solve (prob:: NonlinearProblem {<: Union{Number, StaticArraysCore.SVector} ,
32- iip,
33- <: Dual{T, V, P} },
34- alg:: AbstractSimpleNonlinearSolveAlgorithm ,
35- args... ; kwargs... ) where {iip, T, V, P}
32+ iip,
33+ <: Dual{T, V, P} },
34+ alg:: AbstractSimpleNonlinearSolveAlgorithm ,
35+ args... ; kwargs... ) where {iip, T, V, P}
3636 sol, partials = scalar_nlsolve_ad (prob, alg, args... ; kwargs... )
3737 return SciMLBase. build_solution (prob, alg, Dual {T, V, P} (sol. u, partials), sol. resid;
3838 retcode = sol. retcode)
3939end
4040function SciMLBase. solve (prob:: NonlinearProblem {<: Union{Number, StaticArraysCore.SVector} ,
41- iip,
42- <: AbstractArray{<:Dual{T, V, P}} },
43- alg:: AbstractSimpleNonlinearSolveAlgorithm , args... ;
44- kwargs... ) where {iip, T, V, P}
41+ iip,
42+ <: AbstractArray{<:Dual{T, V, P}} },
43+ alg:: AbstractSimpleNonlinearSolveAlgorithm , args... ;
44+ kwargs... ) where {iip, T, V, P}
4545 sol, partials = scalar_nlsolve_ad (prob, alg, args... ; kwargs... )
4646 return SciMLBase. build_solution (prob, alg, Dual {T, V, P} (sol. u, partials), sol. resid;
4747 retcode = sol. retcode)
5050# avoid ambiguities
5151for Alg in [Bisection]
5252 @eval function SciMLBase. solve (prob:: IntervalNonlinearProblem {uType, iip,
53- <: Dual{T, V, P} },
54- alg:: $Alg , args... ;
55- kwargs... ) where {uType, iip, T, V, P}
53+ <: Dual{T, V, P} },
54+ alg:: $Alg , args... ;
55+ kwargs... ) where {uType, iip, T, V, P}
5656 sol, partials = scalar_nlsolve_ad (prob, alg, args... ; kwargs... )
5757 return SciMLBase. build_solution (prob, alg, Dual {T, V, P} (sol. u, partials),
5858 sol. resid; retcode = sol. retcode,
@@ -61,13 +61,13 @@ for Alg in [Bisection]
6161 # return BracketingSolution(Dual{T,V,P}(sol.left, partials), Dual{T,V,P}(sol.right, partials), sol.retcode, sol.resid)
6262 end
6363 @eval function SciMLBase. solve (prob:: IntervalNonlinearProblem {uType, iip,
64- <: AbstractArray {
65- <: Dual {T,
66- V,
67- P},
68- }},
69- alg:: $Alg , args... ;
70- kwargs... ) where {uType, iip, T, V, P}
64+ <: AbstractArray {
65+ <: Dual {T,
66+ V,
67+ P},
68+ }},
69+ alg:: $Alg , args... ;
70+ kwargs... ) where {uType, iip, T, V, P}
7171 sol, partials = scalar_nlsolve_ad (prob, alg, args... ; kwargs... )
7272 return SciMLBase. build_solution (prob, alg, Dual {T, V, P} (sol. u, partials),
7373 sol. resid; retcode = sol. retcode,
0 commit comments