From 95bf9fb6cf8083c919c91cb8d5114637efb04cf1 Mon Sep 17 00:00:00 2001 From: Sebastien Brisard Date: Fri, 21 Sep 2012 01:53:28 +0000 Subject: [PATCH] In AbstractRealMatrix, removed empty abstract method copy() (specified in interface RealMatrix). git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388296 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/math3/linear/AbstractRealMatrix.java | 3 --- .../org/apache/commons/math3/linear/Array2DRowRealMatrix.java | 1 - .../java/org/apache/commons/math3/linear/BlockRealMatrix.java | 1 - .../org/apache/commons/math3/linear/OpenMapRealMatrix.java | 1 - 4 files changed, 6 deletions(-) diff --git a/src/main/java/org/apache/commons/math3/linear/AbstractRealMatrix.java b/src/main/java/org/apache/commons/math3/linear/AbstractRealMatrix.java index 769d3b782..d1a8bf09a 100644 --- a/src/main/java/org/apache/commons/math3/linear/AbstractRealMatrix.java +++ b/src/main/java/org/apache/commons/math3/linear/AbstractRealMatrix.java @@ -73,9 +73,6 @@ public abstract class AbstractRealMatrix } } - /** {@inheritDoc} */ - public abstract RealMatrix copy(); - /** {@inheritDoc} */ public RealMatrix add(RealMatrix m) throws MatrixDimensionMismatchException { diff --git a/src/main/java/org/apache/commons/math3/linear/Array2DRowRealMatrix.java b/src/main/java/org/apache/commons/math3/linear/Array2DRowRealMatrix.java index 782f15e55..436db7ac7 100644 --- a/src/main/java/org/apache/commons/math3/linear/Array2DRowRealMatrix.java +++ b/src/main/java/org/apache/commons/math3/linear/Array2DRowRealMatrix.java @@ -145,7 +145,6 @@ public class Array2DRowRealMatrix extends AbstractRealMatrix implements Serializ } /** {@inheritDoc} */ - @Override public RealMatrix copy() { return new Array2DRowRealMatrix(copyOut(), false); } diff --git a/src/main/java/org/apache/commons/math3/linear/BlockRealMatrix.java b/src/main/java/org/apache/commons/math3/linear/BlockRealMatrix.java index c7f6391ec..a40950ef8 100644 --- a/src/main/java/org/apache/commons/math3/linear/BlockRealMatrix.java +++ b/src/main/java/org/apache/commons/math3/linear/BlockRealMatrix.java @@ -271,7 +271,6 @@ public class BlockRealMatrix extends AbstractRealMatrix implements Serializable } /** {@inheritDoc} */ - @Override public BlockRealMatrix copy() { // create an empty matrix BlockRealMatrix copied = new BlockRealMatrix(rows, columns); diff --git a/src/main/java/org/apache/commons/math3/linear/OpenMapRealMatrix.java b/src/main/java/org/apache/commons/math3/linear/OpenMapRealMatrix.java index ef16fd8d9..4177dca51 100644 --- a/src/main/java/org/apache/commons/math3/linear/OpenMapRealMatrix.java +++ b/src/main/java/org/apache/commons/math3/linear/OpenMapRealMatrix.java @@ -69,7 +69,6 @@ public class OpenMapRealMatrix extends AbstractRealMatrix } /** {@inheritDoc} */ - @Override public OpenMapRealMatrix copy() { return new OpenMapRealMatrix(this); }