Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-951

Patch: Faster implementation of double org.apache.commons.math3.util.FastMath.copySign(double, double)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2
    • Labels:
    • Environment:

      Description

      Between 40-50% faster than both current implementation and java.lang.Math.copySign by my (sloppy) benchmark. Patch attached.

        Attachments

        1. patch
          1 kB
          Charles Cooper
        2. patch
          2 kB
          Charles Cooper

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              coopercm Charles Cooper
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: