menpofit
menpofit copied to clipboard
d_dx on PWA is only valid when points == source
migrated from https://github.com/menpo/menpo/issues/331.
There is an undocumented restriction on the domain of the d_dx function on DifferentiablePiecewiseAffine - namely that it only works when the input points are equal to the PWA's source points. This is a little tricky to account for correctly.