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

Use implementation of JAMA for ArrayRealVector operators

    Details

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

      Description

      For instance the add(double[] v) fist clones the array, and then adds all entries of this.data to the result.
      JAMA uses the following approach create a empty result[] the assign the sum of each entry to the result. this is approximately 10 -20 % faster.
      I will provide a patch with some more enhancements/cleanups for this.

      in the test look for XXX:
      the first number is the jama time the second the current algorithm.

        Attachments

        1. ArrayRealVector.diff
          2 kB
          Arne Plöse
        2. ArrayRealVector.diff
          10 kB
          Arne Plöse

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aploese Arne Plöse
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: