ForwardDiff.jl icon indicating copy to clipboard operation
ForwardDiff.jl copied to clipboard

Add `seed_duals` convenience and document how to seed Dual numbers

Open ChrisRackauckas opened this issue 6 years ago • 2 comments
trafficstars

Using the Dual implementation in ForwardDiff can be quite useful. This documents how to do it, and adds a seeding function seed_duals which seeds a unique partial for every component of a vector, much like is done internally (in fact, should it be used internally?).

ChrisRackauckas avatar Jan 12 '19 12:01 ChrisRackauckas

FWIW, this increases the API surface of ForwardDiff considerably. Dual numbers are not even mentioned in the manual (except in the implementation details).

KristofferC avatar Jan 12 '19 19:01 KristofferC

FWIW, this increases the API surface of ForwardDiff considerably. Dual numbers are not even mentioned in the manual (except in the implementation details).

This is in the advanced section of the docs though.

pkofod avatar Mar 04 '19 12:03 pkofod