Re: [MATH-1130] Patch on canequal (math-1130-canequal.patch) to make faster equals check with nan

2014-06-23 Thread venkatesha murthy
On Tue, Jun 24, 2014 at 8:36 AM, venkatesha murthy wrote: > On Tue, Jun 24, 2014 at 1:46 AM, Gilles wrote: >> Hi. >> >> >> On Tue, 24 Jun 2014 00:06:16 +0530, venkatesha murthy wrote: >>> >>> I am adding a canEqual method in MathUtils since neither Math.equals nor >>> >>> Precision.equalsIncludin

Re: [MATH-1130] Patch on canequal (math-1130-canequal.patch) to make faster equals check with nan

2014-06-23 Thread venkatesha murthy
On Tue, Jun 24, 2014 at 1:46 AM, Gilles wrote: > Hi. > > > On Tue, 24 Jun 2014 00:06:16 +0530, venkatesha murthy wrote: >> >> I am adding a canEqual method in MathUtils since neither Math.equals nor >> >> Precision.equalsIncludingNaN performs better under heavy load (I have >> attached the test co

Jenkins build is still unstable: commons-jcs #26

2014-06-23 Thread Apache Jenkins Server
See - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org

Jenkins build is still unstable: commons-jcs ยป Apache Commons JCS :: Core #26

2014-06-23 Thread Apache Jenkins Server
See - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org

[continuum] BUILD FAILURE: Apache Commons JCS - Apache Commons (Group (shared) Maven 3 Build Definition (Java 1.6))

2014-06-23 Thread Apache Continuum
Online report : https://continuum-ci.apache.org/continuum/buildResult.action?buildId=32952&projectId=286 Build statistics: State: Failed Previous State: Failed Started at: Tue 24 Jun 2014 01:21:28 + Finished at: Tue 24 Jun 2014 01:25:40 + Total time: 4m 12s Build Trigger: Sche

Re: [MATH-1130] Patch on canequal (math-1130-canequal.patch) to make faster equals check with nan

2014-06-23 Thread Gilles
Hi. On Tue, 24 Jun 2014 00:06:16 +0530, venkatesha murthy wrote: I am adding a canEqual method in MathUtils since neither Math.equals nor Precision.equalsIncludingNaN performs better under heavy load (I have attached the test code for the same in the patch). The reason as far as i can think i

Re: [math] use case for NaNStrategy.FIXED?

2014-06-23 Thread venkatesha murthy
On Tue, Jun 24, 2014 at 12:08 AM, Luc Maisonobe wrote: > Hi all, > > While looking further in Percentile class for MATH-1120, I have found > another problem in the current implementation. NaNStrategy.FIXED should > leave the NaNs in place, but at the end of the KthSelector.select > method, a call

[MATH-1130] Patch on remove and replace (math-1130-remove.patch and math-1130-replace.patch)

2014-06-23 Thread venkatesha murthy
I am adding the following 2 methods in MathArrays. Please let me know if any one has concerns.(The math-1130-remove.patch and math-1130-replace.patch has te code for reference) a) Replace a old val with new val in a double array i) public static double[] replaceInRange(final double[] values,final

[math] use case for NaNStrategy.FIXED?

2014-06-23 Thread Luc Maisonobe
Hi all, While looking further in Percentile class for MATH-1120, I have found another problem in the current implementation. NaNStrategy.FIXED should leave the NaNs in place, but at the end of the KthSelector.select method, a call to Arrays.sort moves the NaNs to the end of the small sub-array. Wh

[MATH-1130] Patch on canequal (math-1130-canequal.patch) to make faster equals check with nan

2014-06-23 Thread venkatesha murthy
I am adding a canEqual method in MathUtils since neither Math.equals nor Precision.equalsIncludingNaN performs better under heavy load (I have attached the test code for the same in the patch). The reason as far as i can think is : In case of equals it keeps churning new objects and makes Double.