[
https://issues.apache.org/jira/browse/MATH-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gilles resolved MATH-1005.
--------------------------
Resolution: Fixed
Fix Version/s: 3.3
Proposed fix committed in revision 1502516. Thanks for the report.
> 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
> Fix For: 3.3
>
>
> 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