Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 52102 invoked from network); 22 May 2009 02:33:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 May 2009 02:33:23 -0000 Received: (qmail 61197 invoked by uid 500); 22 May 2009 02:33:36 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 61095 invoked by uid 500); 22 May 2009 02:33:36 -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 61086 invoked by uid 99); 22 May 2009 02:33:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2009 02:33:35 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2009 02:33:32 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 98A6223888E2; Fri, 22 May 2009 02:33:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r777356 - in /commons/proper/math/trunk/src/java/org/apache/commons/math/linear: OpenMapRealMatrix.java OpenMapRealVector.java SparseRealMatrix.java SparseRealVector.java Date: Fri, 22 May 2009 02:33:12 -0000 To: commits@commons.apache.org From: billbarker@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090522023312.98A6223888E2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: billbarker Date: Fri May 22 02:33:12 2009 New Revision: 777356 URL: http://svn.apache.org/viewvc?rev=777356&view=rev Log: I've made SparseRealVector and SparseRealMatrix to be empty marker interfaces. I've left OpenMapRealVector.getSparcity, since I'd like to use it for benchmarking, and it doesn't hurt anyone else now. Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/linear/OpenMapRealMatrix.java commons/proper/math/trunk/src/java/org/apache/commons/math/linear/OpenMapRealVector.java commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealMatrix.java commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealVector.java Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/linear/OpenMapRealMatrix.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/linear/OpenMapRealMatrix.java?rev=777356&r1=777355&r2=777356&view=diff ============================================================================== --- commons/proper/math/trunk/src/java/org/apache/commons/math/linear/OpenMapRealMatrix.java (original) +++ commons/proper/math/trunk/src/java/org/apache/commons/math/linear/OpenMapRealMatrix.java Fri May 22 02:33:12 2009 @@ -286,9 +286,5 @@ return row * columnDimension + column; } - /** {@inheritDoc} */ - public MatrixShape getShape() { - return MatrixShape.Any; - } } Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/linear/OpenMapRealVector.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/linear/OpenMapRealVector.java?rev=777356&r1=777355&r2=777356&view=diff ============================================================================== --- commons/proper/math/trunk/src/java/org/apache/commons/math/linear/OpenMapRealVector.java (original) +++ commons/proper/math/trunk/src/java/org/apache/commons/math/linear/OpenMapRealVector.java Fri May 22 02:33:12 2009 @@ -1297,7 +1297,10 @@ return true; } - /** {@inheritDoc} */ + /** + * + * @return the percentage of none zero elements as a decimal percent. + */ public double getSparcity() { return (double)entries.size()/(double)getDimension(); } Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealMatrix.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealMatrix.java?rev=777356&r1=777355&r2=777356&view=diff ============================================================================== --- commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealMatrix.java (original) +++ commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealMatrix.java Fri May 22 02:33:12 2009 @@ -25,16 +25,5 @@ * */ public interface SparseRealMatrix extends RealMatrix { - - /** - * Type to identify the shape of the matrix - */ - public static enum MatrixShape {Any}; - - /** - * - * @return the shape of the matrix - */ - MatrixShape getShape(); } Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealVector.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealVector.java?rev=777356&r1=777355&r2=777356&view=diff ============================================================================== --- commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealVector.java (original) +++ commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealVector.java Fri May 22 02:33:12 2009 @@ -24,10 +24,4 @@ */ public interface SparseRealVector extends RealVector { - /** - * - * @return the percentage of none zero elements as a decimal percent. - */ - double getSparcity (); - }