commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sébastien Brisard (JIRA) <>
Subject [jira] [Commented] (MATH-626) Move RealVector.sparseIterator() to SparseRealVector
Date Tue, 31 Jul 2012 05:50:39 GMT


Sébastien Brisard commented on MATH-626:

See also this recent [discussion|].
> Move RealVector.sparseIterator() to   SparseRealVector
> ------------------------------------------------------
>                 Key: MATH-626
>                 URL:
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Arne Plöse
>            Priority: Minor
>             Fix For: 4.0
> Having this method available for all is not very efficient, because if I want use this
feature I must check for interface SparseRealVector.
> otherwise different implementations could be faster. 
> I.e. no array clone and the assigning all values again.
> Maybe one could add a menthod fillstate() to SparseRealVector to guide which is faster
- use array clone and then sparseIterator or just create the array and then fill it up.
> To reduce confusion a second Interface ArrayRealVector with the method getDataRef() and
removing getData() from RealVector would be nice - there is a toArray() this should be sufficient.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message