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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 4.0
    • Labels:
      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

          Issue Links

            Activity

              People

              • Assignee:
                erans Gilles
                Reporter:
                erans Gilles
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: