jscience
  1. jscience
  2. JSCIENCE-91

Matrix.pow(1) can fail because it does a this.times(this)

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: Version 6.0
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      91

      Description

      This issue was found in JScience 4.3.1.

      The Matrix.pow(int exp) method for (exp > 0) always does 'pow2 =
      pow2.times(pow2)', even for exp==1 when it isn't needed. This can result in an
      exception if the matrix contains Amount elements, and those elements are not
      compatible (unit-wise) for this.times(this) matrix multiplication.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jscience-issues
            Reporter:
            shanmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: