Skip to content

Calling value_and_grad with array output #26132

Answered by jakevdp
ASKabalan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi - thanks for the request! This was discussed way back in issue #762: basically, there's not much to gain from providing such an API vs. just evaluating the function and its jacobian separately. But if you really want to do them together, you can use the short recipe at #762 (comment).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ASKabalan
Comment options

Answer selected by ASKabalan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants