FiniteDiff, ForwardDiff and Enzyme disagree: who is right?

Is more than one value in the array equal to the maximum? If so, the derivative isn’t well defined there.

5 Likes