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

Cleanup of "ResizableDoubleArray" ("o.a.c.m.util")

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0
    • 4.0
    • None
    • None

    Description

      Method "addElement" should not call "contract()", as it will almost always make the storage array shrink on the first call since it will be considered "too big" (for just storing one element).

      See discussion about this change in MATH-757.

      Miscellaneous code modifications are also proposed in order to improve encapsulation.

      Attachments

        1. MATH-894.patch
          11 kB
          Gilles Sadowski

        Issue Links

          Activity

            People

              erans Gilles Sadowski
              erans Gilles Sadowski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: