Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C14AEF848 for ; Thu, 21 Mar 2013 07:35:16 +0000 (UTC) Received: (qmail 56119 invoked by uid 500); 21 Mar 2013 07:35:16 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 55667 invoked by uid 500); 21 Mar 2013 07:35:15 -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 55623 invoked by uid 99); 21 Mar 2013 07:35:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Mar 2013 07:35:15 +0000 Date: Thu, 21 Mar 2013 07:35:15 +0000 (UTC) From: "Thomas Neidhart (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (MATH-862) AbstractRealMatrix should check that all supplied double[][] arrays are rectangular MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-862?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Neidhart reopened MATH-862: ---------------------------------- My fix was wrong for copySubMatrix, as the javadoc states that the provided= array does not have to be strictly the size of the submatrix to be copied.= The check should take this into account and only verify that there is enou= gh place for the copy operation. =20 > AbstractRealMatrix should check that all supplied double[][] arrays are r= ectangular > -------------------------------------------------------------------------= ---------- > > Key: MATH-862 > URL: https://issues.apache.org/jira/browse/MATH-862 > Project: Commons Math > Issue Type: Improvement > Affects Versions: 3.2 > Reporter: S=C3=A9bastien Brisard > Priority: Minor > Labels: exception, linear > Fix For: 3.2 > > > Many methods in RealMatrix take as an argument a {{double[][]}} as the re= presentation of a matrix. As such, the array should be rectangular. Checks = should be provided, as requested in the Javadoc of e.g. {{void setSubMatrix= (double[][], int, int)}}. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira