|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Matrix
Class Description: The interface defining a matrix class
Method Summary | |
---|---|
Matrix |
add(Matrix m)
Add a given matrix to this matrix |
double[][] |
asArray()
Convert all data in the matrix to a quadratic double array |
Matrix |
cholesky()
Do the cholesky for this matrix |
java.lang.Object |
clone()
Clone the matrix |
java.lang.String |
getName()
Retrieve the name of this matrix |
long |
getRequiredMemory()
Retrieve the amount of required memory in this matrix (in byte) |
double |
getValue(int row,
int column)
Retrieve a value from the matrix |
boolean |
isMainDiagonalNotZero()
Test if the main diagonal of this matrix is not zero |
boolean |
isSymmetric()
Test if the Matrix is symmetric |
Matrix |
mult(double multiplicator)
Multiply all values in the matrix by the given value |
Matrix |
mult(Matrix m)
Multiply this Matrix with the given Matrix (have to be the same size) |
Vector |
mult(Vector m)
Multiply this Matrix with the given vector (have to be the same size) |
void |
setLineAndColumn(int index,
double value)
Set a whole column to the given value in the matrix at the given column number |
void |
setName(java.lang.String name)
Set a new name for this matrix |
void |
setValue(int row,
int column,
double value)
Set a new value in the matrix |
int |
size()
Get the number of rows and columns in the matrix (square matrix only!) |
void |
storeLine(int lineNumber,
double[] line)
Store a whole line in the matrix at the given line number |
java.lang.String |
toString()
|
java.lang.String |
toString(int number)
Variable toString method |
Matrix |
transponate()
Transponate the Matrix |
Method Detail |
---|
Matrix add(Matrix m)
m,
- the matrix to add
double[][] asArray()
Matrix cholesky() throws CholeskyFailedException
CholeskyFailedException
java.lang.Object clone()
java.lang.String getName()
long getRequiredMemory()
double getValue(int row, int column) throws java.lang.IndexOutOfBoundsException
row,
- the row indexcolum,
- the column index
java.lang.IndexOutOfBoundsException
boolean isMainDiagonalNotZero()
boolean isSymmetric()
Matrix mult(double multiplicator)
multiplicator,
- the value to multiply the matrix with
Matrix mult(Matrix m)
m,
- the matrix
Vector mult(Vector m)
m,
- the vector
void setLineAndColumn(int index, double value)
columnNumber,
- where to store the columnvalue,
- the sole value we want to fill the column withvoid setName(java.lang.String name)
name
- void setValue(int row, int column, double value) throws java.lang.IndexOutOfBoundsException
row,
- the row indexcolum,
- the column indexvalue,
- the value to set
java.lang.IndexOutOfBoundsException
int size()
void storeLine(int lineNumber, double[] line)
lineNumber,
- where to store the lineline,
- the array holding the line's datajava.lang.String toString()
toString
in class java.lang.Object
java.lang.String toString(int number)
number,
- the number of rows and columns to display (starting at the upper left)
Matrix transponate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |