Skip to content

Programmatic way to obtain the Jacobian function #3534

Closed
@Datseris

Description

@Datseris

Question❓

With things in MTK changing, it is a bad idea to rely on internals. Indeed, in DynamicalSystems.jl we attempt to extract a symbolic/generated Jacobian if the system is a result of an MTK build. Originally we were doing:

if prob.f isa SciMLBase.AbstractDiffEqFunction && !isnothing(prob.f.jac)
            J = prob.f.jac

but this no longer works. Is there already, or can you add if not, a programmatic way (API function) to obtain the Jacobian function J so that one can call J(u, p, t) (or J!(J0, u, p, t) for inplace)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions