Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action items post-release #3

Open
1 of 5 tasks
johnmyleswhite opened this issue Aug 17, 2016 · 1 comment
Open
1 of 5 tasks

Action items post-release #3

johnmyleswhite opened this issue Aug 17, 2016 · 1 comment

Comments

@johnmyleswhite
Copy link
Owner

johnmyleswhite commented Aug 17, 2016

  • Implement AllResults API from ForwardDiff
  • Implement box-constrained dynamic direction choice for constrained optimization
  • Implement method to calculate Jacobians
  • Write some basic benchmarks
  • Port all tests from Calculus.jl
@pkofod
Copy link

pkofod commented Mar 27, 2017

Implement AllResults API from ForwardDiff

seems like this is now gone, is it still the way you want to do it, or do you want to follow the DiffBase-style?

ref: docs http://www.juliadiff.org/ForwardDiff.jl/upgrade.html

# old v0.1 style
answer, results = ForwardDiff.hessian(f, x, AllResults)
v = ForwardDiff.value(results)
g = ForwardDiff.gradient(results)
h = ForwardDiff.hessian(results) # == answer

# old v0.2 style
out = HessianResult(x)
ForwardDiff.hessian!(out, f, x)
v = ForwardDiff.value(out)
g = ForwardDiff.gradient(out)
h = ForwardDiff.hessian(out)

# current v0.3 style
using DiffBase
out = DiffBase.HessianResult(x)
ForwardDiff.hessian!(out, f, x)
v = DiffBase.value(out)
g = DiffBase.gradient(out)
h = DiffBase.hessian(out)

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

No branches or pull requests

2 participants