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();