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] [Updated] (NUMBERS-72) Initialization of Complex arrays
Date Wed, 21 Mar 2018 11:52:00 GMT

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

Eric Barnhill updated NUMBERS-72:
---------------------------------
    Description: 
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).

 

EDIT: it will have to be in the Complex class if the constructor is private. So I will add
this.

  was:
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).


> 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
>            Priority: Minor
>
> 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).
>  
> EDIT: it will have to be in the Complex class if the constructor is private. So I will
add this.



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

Mime
View raw message