Skip to content

Testing FastDifferentiation.jl for TORA.jl #33

@ferrolho

Description

@ferrolho

Hi, Brian! 👋 I am currently using ForwardDiff.jl within TORA.jl for computing Jacobians of user-defined vector-valued functions. However, I noticed that FastDifferentiation.jl (this package) may provide quicker Jacobian calculations compared to ForwardDiff.jl, and so I would like to give it a go.

I've created a Jupyter notebook, TestFastDifferentiation.ipynb, on a new branch (hf/test-FastDifferentiation.jl), where I want to benchmark ForwardDiff.jl and FastDifferentiation.jl side-by-side. I've managed to create the variables with

x = make_variables(:x, robot.n_q + robot.n_v + robot.n_τ + robot.n_q + robot.n_v)

but I can't figure out the correct syntax for the actual evaluation of the Jacobian.

P.s. the function I am trying to differentiate is forward_dynamics_defects!.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions