Skip to content

Conversation

@jrevels
Copy link
Member

@jrevels jrevels commented Apr 27, 2017

This allows users to easily extract the types of the Dual instances that will be injected into their code:

julia> cfg = ForwardDiff.GradientConfig(prod, rand(20));

julia> eltype(cfg)
ForwardDiff.Dual{ForwardDiff.Tag{Base.#prod,0xb046287d533b082d},Float64,10}

cc @tkoolen

@jrevels jrevels merged commit aa798b2 into master Apr 27, 2017
@jrevels jrevels deleted the jr/eltype branch April 27, 2017 17:04
@tkoolen
Copy link

tkoolen commented Apr 27, 2017

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants