Skip to content

Conversation

sethaxen
Copy link
Member

@sethaxen sethaxen commented Jul 7, 2020

The Jacobian for a function with an empty primal will be Any[] regardless of the function, which can't be multiplied by the cotangent on the output. This PR fixes #92 by detecting an empty primal and returning an empty cotangent with the same eltype as that of the cotangent of the output.

@sethaxen sethaxen merged commit 56e1d63 into master Jul 7, 2020
@sethaxen sethaxen deleted the emptyprimal branch July 7, 2020 09:45
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.

j′vp errors on empty array primal input

2 participants