|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opale.matrix.SymMatrix
This class implements a symmetrical matrix with real coefficients.
Constructor Summary | |
SymMatrix(int n)
Construct an n X n matrix of zeros. |
Method Summary | |
void |
add(SymMatrix A)
Add an another matrix A to the current matrix. |
SymMatrix |
copy()
Make a copy of the current matrix. |
double |
get(int i,
int j)
Get a coefficient of the matrix. |
double[] |
getArrayCopy()
Get a copy of array of matrix elements. |
int |
getDim()
Get the dimension. |
double[] |
getInternalArray()
Get the internal one-dimensional array. |
static void |
main(java.lang.String[] arg)
|
DVect |
mul(DVect x)
|
void |
set(int i,
int j,
double x)
Set a coefficient of the matrix. |
java.lang.String |
toString()
Print the matrix. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SymMatrix(int n)
int
- n, row dimension.Method Detail |
public int getDim()
public double get(int i, int j)
int
- i, row index.int
- j, column index.public void set(int i, int j, double x)
int
- i, row index.int
- j, column index.double
- x, the value of coeff(i,j)public SymMatrix copy()
public void add(SymMatrix A)
Matrix
- A, an another matrixpublic DVect mul(DVect x)
public double[] getInternalArray()
public double[] getArrayCopy()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] arg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |