|
|||||||||
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 | +--drasys.or.matrix.FunctionMatrix
A matrix that computes some or all of the elements with the abstract method 'functionElementAt' that must be defined in a subclass. It is typically used to extend the rows or columns of a matrix with computations based on the exsisting rows and columns. The subclass constructor must set the two inherited variables '_sizeOfRows' and '_sizeOfColumns'.
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
Field Summary | |
protected int |
_sizeOfColumns
|
protected int |
_sizeOfRows
|
Fields inherited from class drasys.or.matrix.RealContainer |
_epsilon,
_globalEpsilon |
Constructor Summary | |
FunctionMatrix()
|
Method Summary | |
double |
elementAt(int row,
int column)
Gets the value of the element at 'row' and 'column' by calling 'functionElementAt' after checking the validity of the indices. |
abstract double |
functionElementAt(int row,
int column)
Computes the value of the element at 'row' and 'column'. |
boolean |
isColumnMajor()
Returns the value from the underlying matrix. |
boolean |
isNull(int row,
int column)
Returns the value from the underlying matrix if 'row' and 'column' are in its range. |
boolean |
isRowMajor()
Returns the value from the underlying matrix. |
void |
setElementAt(int row,
int column,
double value)
Sets the value in the underlying matrix if 'row' and 'column' are in its range. |
void |
setElements(double value)
Sets the value of all the non-null elements in the underlying matrix. |
int |
sizeOfColumns()
Returns the number of columns in the matrix. |
int |
sizeOfElements()
Returns the number of non-null elements in the matrix. |
int |
sizeOfRows()
Returns the number of rows in the matrix. |
Methods inherited from class drasys.or.matrix.Matrix |
columnElements,
elements,
equals,
equals,
getArray,
rowElements,
setColumn,
setDiagonal,
setElements,
setRow,
sum,
sum,
sum,
sumOfSquaredDifferences,
sumOfSquaredDifferences,
sumOfSquaredDifferences,
sumOfSquares,
sumOfSquares,
sumOfSquares,
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 |
Field Detail |
protected int _sizeOfRows
protected int _sizeOfColumns
Constructor Detail |
public FunctionMatrix()
Method Detail |
public void setElements(double value)
public int sizeOfRows()
public int sizeOfColumns()
public boolean isNull(int row, int column)
public void setElementAt(int row, int column, double value)
public int sizeOfElements()
public boolean isRowMajor()
public boolean isColumnMajor()
public double elementAt(int row, int column)
public abstract double functionElementAt(int row, int column)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |