Skip to content

Commit ef12b48

Browse files
add autoconversion from NTuples of duals
1 parent 4c7f04d commit ef12b48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/init.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function __init__()
2626

2727
promote_u0(u0::AbstractArray{<:ForwardDiff.Dual},p::AbstractArray{<:ForwardDiff.Dual},t0) = u0
2828
promote_u0(u0,p::AbstractArray{<:ForwardDiff.Dual},t0) = eltype(p).(u0)
29+
promote_u0(u0,p::NTuple{N,<:ForwardDiff.Dual},t0) where N = eltype(p).(u0)
2930

3031
function promote_tspan(u0::AbstractArray{<:ForwardDiff.Dual},p,tspan::Tuple{<:ForwardDiff.Dual,<:ForwardDiff.Dual},prob,kwargs)
3132
return tspan

0 commit comments

Comments
 (0)