Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1090

IntervalsSet should implement Iterable<double[]>

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2
    • 3.3
    • None
    • None
    • all

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            luc Luc Maisonobe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: