Skip to content

Add wrapper for combined fg! functions#19

Open
dahong67 wants to merge 3 commits intoGnimuc:masterfrom
dahong67:wrapper-fg!
Open

Add wrapper for combined fg! functions#19
dahong67 wants to merge 3 commits intoGnimuc:masterfrom
dahong67:wrapper-fg!

Conversation

@dahong67
Copy link

Thanks for this very nice package! We're using it over in https://github.com/dahong67/GCPDecompositions.jl

I have some settings there where it can be significantly more efficient to compute the function and gradient together since they share some expensive computations. Similar to PR #6, we also want to avoid re-allocation of the gradient so the older single-function wrapper doesn't quite work for us.

This PR adds a new wrapper method to support combined in-place fg! functions. I've added tests and an example to the README.

Closes #15

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.

A function fg! to compute both function and gradient would be more suitable for this software

1 participant