1
0
mirror of https://github.com/apache/commons-math.git synced 2025-03-08 09:29:34 +00:00
"AbstractRealMatrix" inherits from "RealLinearOperator".
Added "@Override" annotations.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1151806 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2011-07-28 11:59:23 +00:00
parent 4f7b6d2d75
commit f0e28eb000
2 changed files with 21 additions and 2 deletions
src
main/java/org/apache/commons/math/linear
site/xdoc

@ -35,7 +35,9 @@ import org.apache.commons.math.util.FastMath;
* @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 implements RealMatrix {
}
/** {@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 implements RealMatrix {
}
/** {@inheritDoc} */
@Override
public double[] operate(final double[] v) {
final int nRows = getRowDimension();
final int nCols = getColumnDimension();
@ -631,6 +646,7 @@ public abstract class AbstractRealMatrix implements RealMatrix {
}
/** {@inheritDoc} */
@Override
public RealVector operate(final RealVector v) {
try {
return new ArrayRealVector(operate(((ArrayRealVector) v).getDataRef()), false);

@ -52,6 +52,9 @@ The <action> type attribute can be add,update,fix,remove.
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".