|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.math3.linear.RealLinearOperator org.apache.commons.math3.linear.AbstractRealMatrix org.apache.commons.math3.linear.OpenMapRealMatrix
@Deprecated public class OpenMapRealMatrix
Sparse matrix implementation based on an open addressed map.
Constructor Summary | |
---|---|
OpenMapRealMatrix(int rowDimension,
int columnDimension)
Deprecated. Build a sparse matrix with the supplied row and column dimensions. |
|
OpenMapRealMatrix(OpenMapRealMatrix matrix)
Deprecated. Build a matrix by copying another one. |
Method Summary | |
---|---|
OpenMapRealMatrix |
add(OpenMapRealMatrix m)
Deprecated. Compute the sum of this matrix and m . |
void |
addToEntry(int row,
int column,
double increment)
Deprecated. Adds (in place) the specified value to the specified entry of this matrix. |
OpenMapRealMatrix |
copy()
Deprecated. Returns a (deep) copy of this. |
OpenMapRealMatrix |
createMatrix(int rowDimension,
int columnDimension)
Deprecated. Create a new RealMatrix of the same type as the instance with the supplied row and column dimensions. |
int |
getColumnDimension()
Deprecated. Returns the number of columns of this matrix. |
double |
getEntry(int row,
int column)
Deprecated. Get the entry in the specified row and column. |
int |
getRowDimension()
Deprecated. Returns the number of rows of this matrix. |
OpenMapRealMatrix |
multiply(OpenMapRealMatrix m)
Deprecated. Postmultiply this matrix by m . |
RealMatrix |
multiply(RealMatrix m)
Deprecated. Returns the result of postmultiplying this by m . |
void |
multiplyEntry(int row,
int column,
double factor)
Deprecated. Multiplies (in place) the specified entry of this matrix by the
specified value. |
void |
setEntry(int row,
int column,
double value)
Deprecated. Set the entry in the specified row and column. |
OpenMapRealMatrix |
subtract(OpenMapRealMatrix m)
Deprecated. Subtract m from this matrix. |
OpenMapRealMatrix |
subtract(RealMatrix m)
Deprecated. Returns this minus m . |
Methods inherited from class org.apache.commons.math3.linear.AbstractRealMatrix |
---|
add, copySubMatrix, copySubMatrix, equals, getColumn, getColumnMatrix, getColumnVector, getData, getFrobeniusNorm, getNorm, getRow, getRowMatrix, getRowVector, getSubMatrix, getSubMatrix, getTrace, hashCode, isAntisymmetric, isDiagonal, isInvertible, isOrthogonal, isSquare, isSymmetric, isSymmetric, operate, operate, power, preMultiply, preMultiply, preMultiply, scalarAdd, scalarMultiply, setColumn, setColumnMatrix, setColumnVector, setRow, setRowMatrix, setRowVector, setSubMatrix, toString, transpose, walkInColumnOrder, walkInColumnOrder, walkInColumnOrder, walkInColumnOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInRowOrder, walkInRowOrder, walkInRowOrder, walkInRowOrder |
Methods inherited from class org.apache.commons.math3.linear.RealLinearOperator |
---|
isTransposable, operateTranspose |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.commons.math3.linear.RealMatrix |
---|
add, copySubMatrix, copySubMatrix, getColumn, getColumnMatrix, getColumnVector, getData, getFrobeniusNorm, getNorm, getRow, getRowMatrix, getRowVector, getSubMatrix, getSubMatrix, getTrace, isAntisymmetric, isDiagonal, isInvertible, isOrthogonal, isSymmetric, operate, operate, power, preMultiply, preMultiply, preMultiply, scalarAdd, scalarMultiply, setColumn, setColumnMatrix, setColumnVector, setRow, setRowMatrix, setRowVector, setSubMatrix, transpose, walkInColumnOrder, walkInColumnOrder, walkInColumnOrder, walkInColumnOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInRowOrder, walkInRowOrder, walkInRowOrder, walkInRowOrder |
Methods inherited from interface org.apache.commons.math3.linear.AnyMatrix |
---|
isSquare |
Constructor Detail |
---|
public OpenMapRealMatrix(int rowDimension, int columnDimension) throws NotStrictlyPositiveException, NumberIsTooLargeException
rowDimension
- Number of rows of the matrix.columnDimension
- Number of columns of the matrix.
NotStrictlyPositiveException
- if row or column dimension is not
positive.
NumberIsTooLargeException
- if the total number of entries of the
matrix is larger than Integer.MAX_VALUE
.public OpenMapRealMatrix(OpenMapRealMatrix matrix)
matrix
- matrix to copy.Method Detail |
---|
public OpenMapRealMatrix copy()
copy
in interface RealMatrix
copy
in class AbstractRealMatrix
public OpenMapRealMatrix createMatrix(int rowDimension, int columnDimension) throws NotStrictlyPositiveException, NumberIsTooLargeException
createMatrix
in interface RealMatrix
createMatrix
in class AbstractRealMatrix
rowDimension
- the number of rows in the new matrixcolumnDimension
- the number of columns in the new matrix
NumberIsTooLargeException
- if the total number of entries of the
matrix is larger than Integer.MAX_VALUE
.
NotStrictlyPositiveException
- if row or column dimension is not
positive.public int getColumnDimension()
getColumnDimension
in interface AnyMatrix
getColumnDimension
in class AbstractRealMatrix
public OpenMapRealMatrix add(OpenMapRealMatrix m) throws MatrixDimensionMismatchException
m
.
m
- Matrix to be added.
this
+ m
.
MatrixDimensionMismatchException
- if m
is not the same
size as this
.public OpenMapRealMatrix subtract(RealMatrix m) throws MatrixDimensionMismatchException
this
minus m
.
subtract
in interface RealMatrix
subtract
in class AbstractRealMatrix
m
- matrix to be subtracted
this - m
MatrixDimensionMismatchException
- if m
is not the same
size as this
.public OpenMapRealMatrix subtract(OpenMapRealMatrix m) throws MatrixDimensionMismatchException
m
from this matrix.
m
- Matrix to be subtracted.
this
- m
.
MatrixDimensionMismatchException
- if m
is not the same
size as this
.public RealMatrix multiply(RealMatrix m) throws DimensionMismatchException, NumberIsTooLargeException
this
by m
.
multiply
in interface RealMatrix
multiply
in class AbstractRealMatrix
m
- matrix to postmultiply by
this * m
NumberIsTooLargeException
- if m
is an
OpenMapRealMatrix
, and the total number of entries of the product
is larger than Integer.MAX_VALUE
.
DimensionMismatchException
- if
columnDimension(this) != rowDimension(m)
public OpenMapRealMatrix multiply(OpenMapRealMatrix m) throws DimensionMismatchException, NumberIsTooLargeException
m
.
m
- Matrix to postmultiply by.
this
* m
.
DimensionMismatchException
- if the number of rows of m
differ from the number of columns of this
matrix.
NumberIsTooLargeException
- if the total number of entries of the
product is larger than Integer.MAX_VALUE
.public double getEntry(int row, int column) throws OutOfRangeException
getEntry
in interface RealMatrix
getEntry
in class AbstractRealMatrix
row
- Row index of entry to be fetched.column
- Column index of entry to be fetched.
(row, column)
.
OutOfRangeException
- if the row or column index is not valid.public int getRowDimension()
getRowDimension
in interface AnyMatrix
getRowDimension
in class AbstractRealMatrix
public void setEntry(int row, int column, double value) throws OutOfRangeException
setEntry
in interface RealMatrix
setEntry
in class AbstractRealMatrix
row
- Row index of entry to be set.column
- Column index of entry to be set.value
- the new value of the entry.
OutOfRangeException
- if the row or column index is not validpublic void addToEntry(int row, int column, double increment) throws OutOfRangeException
this
matrix. Row and column indices start at 0.
addToEntry
in interface RealMatrix
addToEntry
in class AbstractRealMatrix
row
- Row index of the entry to be modified.column
- Column index of the entry to be modified.increment
- value to add to the matrix entry.
OutOfRangeException
- if the row or column index is not valid.public void multiplyEntry(int row, int column, double factor) throws OutOfRangeException
this
matrix by the
specified value. Row and column indices start at 0.
multiplyEntry
in interface RealMatrix
multiplyEntry
in class AbstractRealMatrix
row
- Row index of the entry to be modified.column
- Column index of the entry to be modified.factor
- Multiplication factor for the matrix entry.
OutOfRangeException
- if the row or column index is not valid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |