You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(sol::TaylorSolution{T, U, N})(::Val{true}, t::TT) where {T, U, N, TT<:TaylorSolutionCallingArgs{T,U}} =error("`TaylorSolution` objects computed from calls to `taylorinteg` with `dense=false` are not callable.")
201
+
202
+
function (sol::TaylorSolution{T, U, 1})(::Val{false}, t::T) where {T, U}
199
203
# Get index of sol.x that interpolates at time t
200
204
ind::Int, δt::T=timeindex(sol, t)
201
205
# Evaluate sol.x[ind] at δt
202
206
return (sol.p[ind])(δt)::U
203
207
end
204
-
function (sol::TaylorSolution{T, U, 1})(t::TT) where {T, U, TT<:TaylorSolutionCallingArgs{T,U}}
208
+
function (sol::TaylorSolution{T, U, 1})(::Val{false}, t::TT) where {T, U, TT<:TaylorSolutionCallingArgs{T,U}}
205
209
# Get index of sol.x that interpolates at time t
206
210
ind::Int, δt::TT=timeindex(sol, t)
207
211
# Evaluate sol.x[ind] at δt
208
212
return (sol.p[ind])(δt)::TT
209
213
end
210
214
211
-
function (sol::TaylorSolution{T, U, 2})(t::T) where {T, U}
215
+
function (sol::TaylorSolution{T, U, 2})(::Val{false}, t::T) where {T, U}
212
216
# Get index of sol.x that interpolates at time t
213
217
ind::Int, δt::T=timeindex(sol, t)
214
218
# Evaluate sol.x[ind] at δt
215
219
returnview(sol.p, ind, :)(δt)::Vector{U}
216
220
end
217
-
function (sol::TaylorSolution{T, U, 2})(t::TT) where {T, U, TT<:TaylorSolutionCallingArgs{T,U}}
221
+
function (sol::TaylorSolution{T, U, 2})(::Val{false}, t::TT) where {T, U, TT<:TaylorSolutionCallingArgs{T,U}}
0 commit comments