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

Runtime Improvement for getSubMatrix in Array2DRowRealMatrix

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0, 3.7
    • Labels:
      None
    • Flags:
      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. 0001-faster-getSubMatrix-for-Array2DRowRealMatrix.patch
          2 kB
          Christoph Dibak
        2. MatrixBenchmark.java
          2 kB
          Emmanuel Bourg
        3. RuntimeTestGetSubMatrix.java
          2 kB
          Christoph Dibak

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: