-
Notifications
You must be signed in to change notification settings - Fork 146
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
Jacobian returns zero matrix #623
Comments
Can't run this, but the output seems to depend smoothly on |
Yeah, sorry, this wasn't meant to be a MWE, just wanted to show my function.
Yeah, I suspected it was this. The coordinates of |
If you perturb You may need to replace the function with one which already interpolates smoothly as |
Ah, that makes perfect sense, thank you. I think I have what I need |
Hello,
I’m working with images, and I’m seeing some strange behaviour on Jacobian computation, so I suspect my function formulation is incorrect.
I have two patches in an image, and my function
F
which returns a vector of differences in intensities between the patches.The difference vector which is returned is computed as
image[ y ] - image[ g(y, x) ]
wherex
are the variables, andy
are some coordinates.Now, if I try computing the jacobian of
F
wrt the variables ofx
with ForwardDiff, my Jacobian is a matrix of all zeros, implying that there is no relation between the function vector, and the input variables.Is the way I am formulating this incorrect?
The function code:
The text was updated successfully, but these errors were encountered: