@@ -369,12 +369,14 @@ function (sol::AbstractODESolution)(t::AbstractVector{<:Number}, ::Type{deriv},
369
369
return DiffEqArray (u, t, p, sol; discretes)
370
370
end
371
371
372
- function (sol:: AbstractODESolution )(v:: AbstractArray , t:: AbstractVector{<:Number} , :: Type{deriv} ,
373
- idxs:: Union{Nothing, Integer, AbstractArray{<:Integer}} , continuity) where {deriv}
372
+ function (sol:: AbstractODESolution )(
373
+ v:: AbstractArray , t:: AbstractVector{<:Number} , :: Type{deriv} ,
374
+ idxs:: Union{Nothing, Integer, AbstractArray{<:Integer}} , continuity) where {deriv}
374
375
return sol. interp (v, t, idxs, deriv, sol. prob. p, continuity)
375
376
end
376
- function (sol:: AbstractODESolution )(v:: AbstractArray , t:: AbstractVector{<:Number} , :: Type{deriv} , idxs,
377
- continuity) where {deriv}
377
+ function (sol:: AbstractODESolution )(
378
+ v:: AbstractArray , t:: AbstractVector{<:Number} , :: Type{deriv} , idxs,
379
+ continuity) where {deriv}
378
380
symbolic_type (idxs) == NotSymbolic () && error (" Incorrect specification of `idxs`" )
379
381
error_if_observed_derivative (sol, idxs, deriv)
380
382
p = hasproperty (sol. prob, :p ) ? sol. prob. p : nothing
@@ -389,8 +391,9 @@ function (sol::AbstractODESolution)(v::AbstractArray, t::AbstractVector{<:Number
389
391
end
390
392
error (" In-place interpolation with discretes is not implemented." )
391
393
end
392
- function (sol:: AbstractODESolution )(v:: AbstractArray , t:: AbstractVector{<:Number} , :: Type{deriv} ,
393
- idxs:: AbstractVector , continuity) where {deriv}
394
+ function (sol:: AbstractODESolution )(
395
+ v:: AbstractArray , t:: AbstractVector{<:Number} , :: Type{deriv} ,
396
+ idxs:: AbstractVector , continuity) where {deriv}
394
397
if symbolic_type (idxs) == NotSymbolic () && isempty (idxs)
395
398
return map (_ -> eltype (eltype (sol. u))[], t)
396
399
end
0 commit comments