Closed mlubin closed 8 years ago
I'm sorry for having broken a downstream project, but all these derivatives are essentially untested, it's easy to break something without noticing it. In any case, I'm fine with this temporary solution.
As a definitive solution, how about setting the gradient of oftype(x, y)
to (zero(x), one(x))
?
@giordano, that would work except for the missing infrastructure to differentiate two-argument functions
except for the missing infrastructure to differentiate two-argument functions
Yes, that's unfortunate.
@giordano, these ended up breaking JuMP because we symbolically differentiate the list of derivatives to get 2nd order derivatives, and Calculus doesn't know how to differentiate
oftype
. We usepi
in a number of other places withoutoftype
, so I'm going to back out this change until there's a more satisfying way to handle this case.