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)

Reply via email to