Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

ForwardDiff.jl Compatibility #84

Open
2 tasks
trthatcher opened this issue Jan 12, 2019 · 0 comments
Open
2 tasks

ForwardDiff.jl Compatibility #84

trthatcher opened this issue Jan 12, 2019 · 0 comments

Comments

@trthatcher
Copy link
Owner

trthatcher commented Jan 12, 2019

ForwardDiff.jl has the following constraints:

  • The target function can only be composed of generic Julia functions. ForwardDiff cannot propagate derivative information through non-Julia code. Thus, your function may not work if it makes calls to external, non-Julia programs, e.g. uses explicit BLAS calls instead of Ax_mul_Bx-style functions.
  • The target function must be written generically enough to accept numbers of type T<:Real as input (or arrays of these numbers). The function doesn't require a specific type signature, as long as the type signature is generic enough to avoid breaking this rule. This also means that any storage assigned used within the function must be generic as well.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant