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 2011/03/23 21:15:05 UTC
[jira] [Closed] (MATH-391) Inconsistent behaviour of constructors
in ArrayRealVector class
[ https://issues.apache.org/jira/browse/MATH-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luc Maisonobe closed MATH-391.
------------------------------
Closing issue as it was included in version 2.2, which has been released
> Inconsistent behaviour of constructors in ArrayRealVector class
> ---------------------------------------------------------------
>
> Key: MATH-391
> URL: https://issues.apache.org/jira/browse/MATH-391
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Roman Werpachowski
> Fix For: 2.2
>
>
> ArrayRealVector(double[] d) allows to construct a zero-length vector, but ArrayRealVector(double[] d, boolean copyArray) doesn't. Both should allow this as zero-length vectors are mathematically well-defined objects and they are useful boundary cases in many algorithms.
> This breaks some arithmetic operators (addition) on zero-length real vectors which worked in 2.0 but don't work in 2.1
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira