Skip to content

Commit

Permalink
fix: capture more forwarddiff types
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Oct 10, 2024
1 parent 2b1cd1d commit b8c4c35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/forward_diff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import SimpleNonlinearSolve: __nlsolve_ad, __nlsolve_dual_soln, __nlsolve_∂f_
__nlsolve_∂f_∂u

for (uType, pType) in [
(Union{Number, <:AbstractArray}, Union{<:Dual, <:AbstractArray{<:Dual}}),
(Union{<:Number, <:AbstractArray}, Union{<:Dual, <:AbstractArray{<:Dual}}),
(Union{<:Dual, <:AbstractArray{<:Dual}}, Union{<:Dual, <:AbstractArray{<:Dual}}),
(Union{<:Dual, <:AbstractArray{<:Dual}}, Any),
(Union{<:Dual, <:AbstractArray{<:Dual}}, Union{<:Number, <:AbstractArray})
]
@eval begin
function SciMLBase.solve(
Expand Down

0 comments on commit b8c4c35

Please sign in to comment.