From a197358647e4c2c278dc7ffacd32be32341f86cf Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Tue, 22 Feb 2011 09:03:12 +0000 Subject: [PATCH] fixed the since message to show the getSparsity has been introduced in 2.2 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073263 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/math/linear/OpenMapRealVector.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java b/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java index e14d06127..8b2e94ffa 100644 --- a/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java +++ b/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java @@ -839,6 +839,7 @@ public class OpenMapRealVector extends AbstractRealVector /** * * @return the percentage of none zero elements as a decimal percent. + * @since 2.2 */ public double getSparsity() { return (double)entries.size()/(double)getDimension();