Skip to content

Try using TaylorDiff.jl instead of TaylorIntegration.jl #253

@nathanaelbosch

Description

@nathanaelbosch

Not quite sure what to gain here, but at the very least the dependency could be more lightweight.

The part that would be changed is this one:

"""
Compute initial derivatives of an IIP ODEProblem with TaylorIntegration.jl
"""
function taylormode_get_derivatives(u, f::SciMLBase.AbstractODEFunction{true}, p, t, q)
tT = Taylor1(typeof(t), q)
tT[0] = t
uT = similar(u, Taylor1{eltype(u)})
@inbounds @simd ivdep for i in eachindex(u)
uT[i] = Taylor1(u[i], q)
end
duT = zero(uT)
uauxT = similar(uT)
TaylorIntegration.jetcoeffs!(f, tT, uT, duT, uauxT, p)
return [evaluate.(differentiate.(uT, i)) for i in 0:q]
end

Currently I'm not sure how to best get exactly this functionality from TaylorDiff.jl. If you do, please comment!

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions