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

                 Key: MATH-317
                 URL: https://issues.apache.org/jira/browse/MATH-317
             Project: Commons Math
          Issue Type: Improvement
    Affects Versions: 2.0
         Environment: all
            Reporter: Jake Mannix
            Priority: Minor
             Fix For: 2.1


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to