Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 10396 invoked from network); 21 Jul 2010 09:36:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Jul 2010 09:36:48 -0000 Received: (qmail 33629 invoked by uid 500); 21 Jul 2010 09:36:48 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 33358 invoked by uid 500); 21 Jul 2010 09:36:45 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 33349 invoked by uid 99); 21 Jul 2010 09:36:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jul 2010 09:36:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jul 2010 09:36:41 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6L9Sohh011476 for ; Wed, 21 Jul 2010 09:28:50 GMT Message-ID: <22902287.493691279704530300.JavaMail.jira@thor> Date: Wed, 21 Jul 2010 05:28:50 -0400 (EDT) From: "Roman Werpachowski (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (MATH-391) Inconsistent behaviour of constructors in ArrayRealVector class In-Reply-To: <9625374.493091279702730362.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MATH-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Roman Werpachowski updated MATH-391: ------------------------------------ Description: 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 was: 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. Zero-length vectors worked in version 2.0, they should be working in 2.1 as well. > 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 > > 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. - You can reply to this email to add a comment to the issue online.