You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Luc Maisonobe (JIRA)" <ji...@apache.org> on 2014/01/20 16:28:21 UTC

[jira] [Created] (MATH-1090) IntervalsSet should implement Iterable

Luc Maisonobe created MATH-1090:
-----------------------------------

             Summary: IntervalsSet should implement Iterable<double[]>
                 Key: MATH-1090
                 URL: https://issues.apache.org/jira/browse/MATH-1090
             Project: Commons Math
          Issue Type: New Feature
    Affects Versions: 3.2
         Environment: all
            Reporter: Luc Maisonobe
            Priority: Minor


Currently, iterating over the intervals of an IntervalsSet instance requires to convert the instance to a list using asList(). This implies that a full copy of the data is done, even if one only want to iterates one and look at intervals one at a time.

Having IntervalsSet implement Iterable<double[]> by itself, simply walking in the underlying BSP tree would save some memory resources.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)