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

ArrayIndexOutOfBoundsException in MathArrays.linearCombination

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2
    • 3.3
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: