Roman Werpachowski created MATH-1005:
----------------------------------------

             Summary: ArrayIndexOutOfBoundsException in 
MathArrays.linearCombination
                 Key: MATH-1005
                 URL: https://issues.apache.org/jira/browse/MATH-1005
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 3.2
            Reporter: Roman Werpachowski


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to