|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--drasys.or.matrix.RealContainer | +--drasys.or.matrix.Matrix
Abstract base class for matrices.
References:
Matrix Computations (Johns Hopkins Studies in the Mathematical Sciences)
Gene H. Golub, Charles F. Van Loan (Contributor) / Paperback / Published 1996
Numerical Recipes in C : The Art of Scientific Computing
William H. Press, et al / Hardcover / Published 1993
Parallel Algorithms for Matrix Computations
K.A. Gallivan / Paperback / Published 1990
Fields inherited from class drasys.or.matrix.RealContainer |
_epsilon,
_globalEpsilon |
Constructor Summary | |
Matrix()
|
|
Matrix(double epsilon)
|
Method Summary | |
java.util.Enumeration |
columnElements(int column)
Returns an enumeration of the non-null elements in a column. |
java.util.Enumeration |
elements()
Returns an enumeration of the non-null elements in the matrix. |
boolean |
equals(MatrixI matrix)
Returns true if the matrices are numerically equal. |
boolean |
equals(java.lang.Object o)
|
double[][] |
getArray()
Returns a new two-dimensional array containing the values in matrix. |
java.util.Enumeration |
rowElements(int row)
Returns an enumeration of the non-null elements in a row. |
void |
setColumn(int column,
VectorI values)
Sets the value of the elements in a column. |
void |
setDiagonal(VectorI values)
Sets the value of the elements in the diagonal. |
void |
setElements(MatrixI values)
Sets the value of the elements from the non-null values in 'values'. |
void |
setRow(int row,
VectorI values)
Sets the value of the elements in a row. |
double |
sum()
Returns the sum of all of the elements in the matrix. Computes sum(a[i][j]). Where: i = {0,...,(sizeOfRows-1)} j = {0,...,(sizeofColumns-1)} |
double |
sum(int begin)
Returns the sum of all of the elements in the sub-matrix. Computes sum(a[i][j]). Where: i = {begin,...,(sizeOfRows-1)} j = {begin,...,(sizeofColumns-1)} |
double |
sum(int rowBegin,
int rowEnd,
int columnBegin,
int columnEnd)
Returns the sum of the elements. Computes sum((a[i][j]-scaler)^2). Where: i = {rowBegin,...,(rowEnd-1)} j = {columBegin,...,(columnEnd-1)} |
double |
sumOfSquaredDifferences(double scaler)
Returns the sum of the squared differences between the elements and a scaler. Computes sum((a[i][j]-scaler)^2). Where: i = {0,...,(sizeOfRows-1)} j = {0,...,(sizeofColumns-1)} |
double |
sumOfSquaredDifferences(int begin,
double scaler)
Returns the sum of the squared differences between the elements and a scaler. Computes sum((a[i][j]-scaler)^2). Where: i = {begin,...,(sizeOfRows-1)} j = {begin,...,(sizeofColumns-1)} |
double |
sumOfSquaredDifferences(int rowBegin,
int rowEnd,
int columnBegin,
int columnEnd,
double scaler)
Returns the sum of the squared differences between the elements and a scaler. Computes sum((a[i][j]-scaler)^2). Where: i = {rowBegin,...,(rowEnd-1)} j = {columBegin,...,(columnEnd-1)} |
double |
sumOfSquares()
Returns the sum of squares for all of the elements in the matrix. Computes sum(a[i][j]). Where: i = {0,...,(sizeOfRows-1)} j = {0,...,(sizeofColumns-1)} |
double |
sumOfSquares(int begin)
Returns the sum of the squares of all of the elements in the sub-matrix. Computes sum(a[i][j]^2). Where: i = {begin,...,(sizeOfRows-1)} j = {begin,...,(sizeofColumns-1)} |
double |
sumOfSquares(int rowBegin,
int rowEnd,
int columnBegin,
int columnEnd)
Returns the sum of the squares of all of the elements in the sub-matrix. Computes sum(a[i][j]^2). Where: i = {rowBegin,...,(rowEnd-1)} j = {columBegin,...,(columnEnd-1)} |
java.lang.String |
toString()
|
Methods inherited from class drasys.or.matrix.RealContainer |
equals,
getEpsilon,
getGlobalEpsilon,
setEpsilon,
setGlobalEpsilon |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Matrix()
public Matrix(double epsilon)
Method Detail |
public double sum()
public double sumOfSquares()
public double sum(int rowBegin, int rowEnd, int columnBegin, int columnEnd)
public double sumOfSquaredDifferences(int rowBegin, int rowEnd, int columnBegin, int columnEnd, double scaler)
public double[][] getArray()
public double sumOfSquares(int rowBegin, int rowEnd, int columnBegin, int columnEnd)
public double sumOfSquaredDifferences(double scaler)
public double sum(int begin)
public double sumOfSquares(int begin)
public double sumOfSquaredDifferences(int begin, double scaler)
public boolean equals(java.lang.Object o)
public void setElements(MatrixI values)
public void setRow(int row, VectorI values)
public void setColumn(int column, VectorI values)
public void setDiagonal(VectorI values)
public boolean equals(MatrixI matrix)
public java.lang.String toString()
public java.util.Enumeration rowElements(int row)
public java.util.Enumeration columnElements(int column)
public java.util.Enumeration elements()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |