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)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2
    • 3.2
    • None

    Description

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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: