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
// double org.apache.commons.math3.analysis.differentiation.DerivativeStructure.getPartialDerivative(int[] orders)publicstaticbooleanm12_p0(org.apache.commons.math3.analysis.differentiation.DerivativeStructurereceiver12_p0, int[] orders) {
// @param orders derivation orders with respect to each variable (if all orders are 0, the value is returned) ==> args[0]==0returnorders == 0;
}
for org.apache.commons.math3.analysis.differentiation.DerivativeStructure.getPartialDerivative
The @param comment indicates that the condition should be orders[i]==0 for all i, but the condition is testing if the whole array is zero.
This relates somewhat to issue #65 where Toradocu is also generating a condition where the types are not compatible.
The text was updated successfully, but these errors were encountered:
…" predicates
Avoid to generate conditions that are indeed wrong because of the mismatch
between the subject type and the predicate translation. For example, if the
subject is of type boolean, a translation of the predicate like "==0" would
be considered wrong and discarded. At the moment, validity check of predicate
translations is implemented only for subjects that are method's arguments.
Also, predicates like "has zero length" on arrays are now correctly supported.
This change improves precision and recall.
Resolves: #65, #66, #67
Toradocu generates the following condition method
for
org.apache.commons.math3.analysis.differentiation.DerivativeStructure.getPartialDerivative
The
@param
comment indicates that the condition should beorders[i]==0
for alli
, but the condition is testing if the whole array is zero.This relates somewhat to issue #65 where Toradocu is also generating a condition where the types are not compatible.
The text was updated successfully, but these errors were encountered: