commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Barnhill (JIRA)" <j...@apache.org>
Subject [jira] [Created] (NUMBERS-72) Initialization of Complex arrays
Date Wed, 21 Mar 2018 11:37:00 GMT
Eric Barnhill created NUMBERS-72:
------------------------------------

             Summary: Initialization of Complex arrays
                 Key: NUMBERS-72
                 URL: https://issues.apache.org/jira/browse/NUMBERS-72
             Project: Commons Numbers
          Issue Type: Improvement
            Reporter: Eric Barnhill


Now that the Complex constructor is private, arrays of Complex objects break. So, it is no
longer backwards-compatible with most of my Complex code.

If we are not concerned about backwards compatibility with commons-math, I propose we add
a method in Complex or ComplexUtils taking array dimensions, e.g. "complexArray(5, 4, 3)"
returning the result of the previous "new Complex[5][4][3]" (though slightly better as the
Complex objects can all be initialized to 0,0).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message