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

ArrayIndexOutOfBoundsException in MathArrays.linearCombination

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Labels:
      None

      Description

      When MathArrays.linearCombination is passed arguments with length 1, it throws an ArrayOutOfBoundsException. This is caused by this line:

      double prodHighNext = prodHigh[1];

      linearCombination should check the length of the arguments and fall back to simple multiplication if length == 1.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              roman.werpachowski Roman Werpachowski
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: