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

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

John Bay created MATH-1252:
------------------------------

             Summary: 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


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)