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 8873040D1 for ; Tue, 17 May 2011 21:40:28 +0000 (UTC) Received: (qmail 13519 invoked by uid 500); 17 May 2011 21:40:28 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 13233 invoked by uid 500); 17 May 2011 21:40:27 -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 13217 invoked by uid 99); 17 May 2011 21:40:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 21:40:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 21:40:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8C2B2CEFDF for ; Tue, 17 May 2011 21:39:47 +0000 (UTC) Date: Tue, 17 May 2011 21:39:47 +0000 (UTC) From: "Gilles (JIRA)" To: issues@commons.apache.org Message-ID: <782379293.20712.1305668387570.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1783595867.6954.1305213287360.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MATH-574) Remove the restriction that the two vectors in RealVector.outerProduct have to be of the same size. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13035078#comment-13035078 ] Gilles commented on MATH-574: ----------------------------- "SparseFieldVector" fixed in revision 1104575. > Remove the restriction that the two vectors in RealVector.outerProduct have to be of the same size. > --------------------------------------------------------------------------------------------------- > > Key: MATH-574 > URL: https://issues.apache.org/jira/browse/MATH-574 > Project: Commons Math > Issue Type: Improvement > Affects Versions: 2.2, 3.0 > Environment: All. > Reporter: Emile Ben Nasatyr > Priority: Minor > Labels: matrix, vector > Fix For: 3.0 > > Original Estimate: 24h > Remaining Estimate: 24h > > Currently RealMatrix M = x.outerProduct(y) throws an exception if x and y are different sizes. This is as documented in the Javadoc but not what one expects mathematically (see e.g. http://en.wikipedia.org/wiki/Outer_product) - the vectors can be any size. > So please remove the restriction that the vectors should be the same size, as this doesn't seem to be necessary either mathematically or in terms of the implementation. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira