Return-Path: Delivered-To: apmail-commons-commits-archive@locus.apache.org Received: (qmail 81144 invoked from network); 1 Jun 2008 19:40:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jun 2008 19:40:38 -0000 Received: (qmail 33345 invoked by uid 500); 1 Jun 2008 19:40:40 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 33280 invoked by uid 500); 1 Jun 2008 19:40:39 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 33271 invoked by uid 99); 1 Jun 2008 19:40:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jun 2008 12:40:39 -0700 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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jun 2008 19:39:59 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BC9612388A1B; Sun, 1 Jun 2008 12:40:16 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r662274 - /commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/estimation/AbstractEstimator.java Date: Sun, 01 Jun 2008 19:40:16 -0000 To: commits@commons.apache.org From: luc@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080601194016.BC9612388A1B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: luc Date: Sun Jun 1 12:40:16 2008 New Revision: 662274 URL: http://svn.apache.org/viewvc?rev=662274&view=rev Log: avoid array copy Modified: commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/estimation/AbstractEstimator.java Modified: commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/estimation/AbstractEstimator.java URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/estimation/AbstractEstimator.java?rev=662274&r1=662273&r2=662274&view=diff ============================================================================== --- commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/estimation/AbstractEstimator.java (original) +++ commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/estimation/AbstractEstimator.java Sun Jun 1 12:40:16 2008 @@ -179,7 +179,7 @@ try { // compute the covariances matrix - return new RealMatrixImpl(jTj).inverse().getData(); + return ((RealMatrixImpl) new RealMatrixImpl(jTj, false).inverse()).getDataRef(); } catch (InvalidMatrixException ime) { throw new EstimationException("unable to compute covariances: singular problem", new Object[0]);