commons-math icon indicating copy to clipboard operation
commons-math copied to clipboard

Apache Commons Math

Results 70 commons-math issues
Sort by recently updated
recently updated
newest added

In BOBYQA's bobyqb and trsbox algorithm, some state change not take effect beacuse of "break" just break the inner for-loop, not outer switch. This pull just deal with that.

Using new Double(double) is guaranteed to always result in a new object whereas Double.valueOf(double) allows caching of values to be done by the compiler, class library, or JVM. Using of...

It is often a better design to return a length zero array rather than a null reference to indicate that there are no results (i.e., an empty list of results)....

The condition "variablesToInclude.length > 1" has no effect on the current statement. This condition always produces the same result as the value of variablesToInclude.length was narrowed before. http://findbugs.sourceforge.net/bugDescriptions.html#UC_USELESS_CONDITION

The expression "lastResult != null" is a redundant check of a known non-null value because lastResult is non-null. http://findbugs.sourceforge.net/bugDescriptions.html#RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE

Recently, I was using a sparse matrix to store co-occurrence statistics of words in a corpus. There are 50,000 unique words, and since 50,000^2 is greater than the maximum integer...

Fixed: - StringBuffer in single thread - Empty operators - Collection.size == 0 - Return in void

See the JIRA ticket for complete investigation notes, links, and line of thought https://issues.apache.org/jira/browse/MATH-1401 Simply adds the proper if/else to check special cases where number of successes = 0, and...

Our static analysis says that line 47 needs to be guarded, otherwise line 53 does not make sense.