Author: erans Date: Thu Jul 28 11:59:23 2011 New Revision: 1151806 URL: http://svn.apache.org/viewvc?rev=1151806&view=rev Log: MATH-633 "AbstractRealMatrix" inherits from "RealLinearOperator". Added "@Override" annotations.
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java commons/proper/math/trunk/src/site/xdoc/changes.xml Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java?rev=1151806&r1=1151805&r2=1151806&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java Thu Jul 28 11:59:23 2011 @@ -35,7 +35,9 @@ import org.apache.commons.math.util.Fast * @version $Id$ * @since 2.0 */ -public abstract class AbstractRealMatrix implements RealMatrix { +public abstract class AbstractRealMatrix + extends RealLinearOperator + implements RealMatrix { /** * Creates a matrix with no data */ @@ -591,9 +593,21 @@ public abstract class AbstractRealMatrix } /** {@inheritDoc} */ + + /** + * Returns the number of rows of this matrix. + * + * @return the number of rows. + */ + @Override public abstract int getRowDimension(); - /** {@inheritDoc} */ + /** + * Returns the number of columns of this matrix. + * + * @return the number of columns. + */ + @Override public abstract int getColumnDimension(); /** {@inheritDoc} */ @@ -611,6 +625,7 @@ public abstract class AbstractRealMatrix } /** {@inheritDoc} */ + @Override public double[] operate(final double[] v) { final int nRows = getRowDimension(); final int nCols = getColumnDimension(); @@ -631,6 +646,7 @@ public abstract class AbstractRealMatrix } /** {@inheritDoc} */ + @Override public RealVector operate(final RealVector v) { try { return new ArrayRealVector(operate(((ArrayRealVector) v).getDataRef()), false); Modified: commons/proper/math/trunk/src/site/xdoc/changes.xml URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/site/xdoc/changes.xml?rev=1151806&r1=1151805&r2=1151806&view=diff ============================================================================== --- commons/proper/math/trunk/src/site/xdoc/changes.xml (original) +++ commons/proper/math/trunk/src/site/xdoc/changes.xml Thu Jul 28 11:59:23 2011 @@ -52,6 +52,9 @@ The <action> type attribute can be add,u If the output is not quite correct, check for invisible trailing spaces! --> <release version="3.0" date="TBD" description="TBD"> + <action dev="erans" type="add" issue="MATH-633" due-to="Sébastien Brisard"> + "AbstractRealMatrix" inherits from "RealLinearOperator". + </action> <action dev="erans" type="add" issue="MATH-613" due-to="Sébastien Brisard"> Linear combination of vectors: "RealVector" interface updated, implemented in "AbstractRealVector" and "ArrayRealVector".