You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 that zero translates to the corresponding int 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:
// org.apache.commons.math3.analysis.differentiation.DerivativeStructure org.apache.commons.math3.analysis.differentiation.DerivativeStructure.divide(org.apache.commons.math3.analysis.differentiation.DerivativeStructure a)publicstaticbooleanm22_t2(org.apache.commons.math3.analysis.differentiation.DerivativeStructurereceiver22_t2, org.apache.commons.math3.analysis.differentiation.DerivativeStructurea) {
// @throws org.apache.commons.math3.exception.MathArithmeticException if a is zero ==> args[0]==0returna == 0;
}
The text was updated successfully, but these errors were encountered:
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 that
zero
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:
The text was updated successfully, but these errors were encountered: