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

Runtime Improvement for getSubMatrix in Array2DRowRealMatrix

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 4.0, 3.7
    • None
    • None
    • Patch

    Description

      Using System.arraycopy() for creating sub-matrices in the getSubMatrix() method of Array2DRowRealMatrix improves the runtime. Tested for a matrix with dimension 50x50, the execution time was 16 times faster.

      Attachments

        1. RuntimeTestGetSubMatrix.java
          2 kB
          Christoph Dibak
        2. MatrixBenchmark.java
          2 kB
          Emmanuel Bourg
        3. 0001-faster-getSubMatrix-for-Array2DRowRealMatrix.patch
          2 kB
          Christoph Dibak

        Activity

          People

            Unassigned Unassigned
            dibakch Christoph Dibak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: