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

Perf improvement: OpenMapRealVector should iterate over smaller of two OMRVs, and should call ArrayRealVector.getDataRef() when possible

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.1
    • None
    • all

    Description

      In RealVector methods which take other RealVector parameters, OpenMapRealVector should check to see which vector has more entries, and iterate over the smaller of the two, when possible. When the other vector is an ArrayRealVector, it should be explicitly cast to this, and getDataRef() should be called, to avoid an unnecessary and possibly large array copy.

      Attachments

        1. MATH-317.patch
          10 kB
          Jake Mannix

        Activity

          People

            Unassigned Unassigned
            jake.mannix Jake Mannix
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: