commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Werpachowski (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MATH-1005) ArrayIndexOutOfBoundsException in MathArrays.linearCombination
Date Fri, 12 Jul 2013 09:39:48 GMT
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

Mime
View raw message