[
https://issues.apache.org/jira/browse/MATH-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Phil Steitz resolved MATH-1252.
-------------------------------
Resolution: Fixed
Fix Version/s: 3.6
4.0
Many thanks for reporting this and pinpointing the cause.
Fixed in
3.x: 9f148d41e0cb5839e8680bd3b4c4bc21510e444b
master: 09fe956a62e19c160d0093f8fecf254c2bb6f0cb
> ResizableDoubleArray does not work with double array of size 1
> --------------------------------------------------------------
>
> Key: MATH-1252
> URL: https://issues.apache.org/jira/browse/MATH-1252
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 3.5
> Reporter: John Bay
> Fix For: 4.0, 3.6
>
> Original Estimate: 10m
> Remaining Estimate: 10m
>
> When attempting to create a ResizableDoubleArray with an array of a single
> value (e.g. {4.0}), the constructor creates an internal array with 16 entries
> that are all 0.0
> Bug looks like it might be on line 414 of ResizableDoubleArray.java:
> if (data != null && data.length > 1) {
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)