Closed bjkeller closed 7 years ago
With Apache Commons Math there is a general problem of badly typed conditions some more like the example above and some like issue #66.
Others where type has a "zero":
org.apache.commons.math3.analysis.differentiation.SparseGradient.divide(org.apache.commons.math3.analysis.differentiation.SparseGradient a)
The condition for
org.apache.commons.math3.analysis.differentiation.DerivativeStructure org.apache.commons.math3.analysis.differentiation.DerivativeStructure.divide(org.apache.commons.math3.analysis.differentiation.DerivativeStructure a)
assumes thatzero
translates to the correspondingint
value. However, the class has a zero object that is different from the int, and may be difficult to figure out from the class.This is the generated condition method: