|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFEJDMath.SkyLine
Uses to implement the skyline storage method for matrices, ie in a column, the zero elements above the first non zero element are not stored in the matrix. A pointer vector is used to point to the diagonal elements
Field Summary | |
private java.util.ArrayList |
K
The coefficients of the matrix |
private int[] |
Lk
The pointer vector |
private int |
size
The size of the matrix |
Constructor Summary | |
SkyLine(int n)
|
Method Summary | |
void |
computeLLT(SkyLine S)
Modifies the argument S so it contains the upper part of the decomposition of the current matrix |
double |
get(int i,
int j)
Returns the coefficient (i,j) of the matrix (1 based as usual in math) |
private int |
getIndice(int i,
int j)
Returns the index in the vector of the preceding diagonal element |
int |
getSize()
Returns the size of shape the matrix |
int |
getVectorSize()
Returns the size of the matrix |
double[] |
linSolve(double[] v)
Returns x the solution of the following problem : this * x = v |
void |
set(int i,
int j,
double v)
Sets the value of the coefficient (i,j) of the matrix to v (1 based as usual in math) |
private double[] |
solveTinf(double[] f)
Returns the solution of the following problem : this * sol = f with this considered as lower-triangular (but still stored the same way) |
private double[] |
solveTsup(double[] f)
Returns the solution of the following problem : this * sol = f with this considered as upper-triangular |
java.lang.String |
toString()
Returns the matrix in its usual mathematical format (can be very long for large matrices) |
java.lang.String |
toString2()
Returns the items contained in the pointer and those contained in the ArrayList, for debugging |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int size
private java.util.ArrayList K
private int[] Lk
Constructor Detail |
public SkyLine(int n)
n
- size of the new skyline matrixMethod Detail |
public double[] linSolve(double[] v)
public int getSize()
public int getVectorSize()
public double get(int i, int j)
public void set(int i, int j, double v)
private int getIndice(int i, int j)
public java.lang.String toString()
public java.lang.String toString2()
public void computeLLT(SkyLine S)
private double[] solveTsup(double[] f)
private double[] solveTinf(double[] f)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |