commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jake Mannix (JIRA)" <j...@apache.org>
Subject [jira] Created: (MATH-317) Perf improvement: OpenMapRealVector should iterate over smaller of two OMRVs, and should call ArrayRealVector.getDataRef() when possible
Date Mon, 02 Nov 2009 20:38:59 GMT
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.


Mime
View raw message