You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Phil Steitz (JIRA)" <ji...@apache.org> on 2015/07/24 02:58:04 UTC

[jira] [Updated] (MATH-1252) ResizableDoubleArray does not work with double array of size 1

     [ https://issues.apache.org/jira/browse/MATH-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phil Steitz updated MATH-1252:
------------------------------
    Affects Version/s: 3.4
                       3.4.1

> 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.4, 3.4.1, 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)