You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Luc Maisonobe (JIRA)" <ji...@apache.org> on 2013/03/11 18:57:14 UTC
[jira] [Resolved] (MATH-570) Change some constructors of
ArrayFieldVector to accept FieldVector
[ https://issues.apache.org/jira/browse/MATH-570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luc Maisonobe resolved MATH-570.
--------------------------------
Resolution: Fixed
Fixed in subversion repository as of r1455260.
Thanks for the report and the fix suggestion.
> Change some constructors of ArrayFieldVector to accept FieldVector
> ------------------------------------------------------------------
>
> Key: MATH-570
> URL: https://issues.apache.org/jira/browse/MATH-570
> Project: Commons Math
> Issue Type: Improvement
> Reporter: Arne Plöse
> Priority: Minor
> Fix For: 3.2
>
>
> the constructor public ArrayFieldVector(T[] v1, ArrayFieldVector<T> v2) {
> ...
> }
> takes an ArrayFieldVector.
> but the same can be easier archieved with this
> public ArrayFieldVector(T[] v1, FieldVector<T> v2) {
> this(v1, v2 == null ? null : v2.getData());
> }
> this goes for all other constructors...
> P.S. I donk know if copying the data in getData is an issue ... for this the named constructor may make sense...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira