|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfhm.edu.fem.calc.objects.matrix.SVI2
public class SVI2
Class Description: This class offers methods to calculate Eigenvalues and Eigenvectors via the SVI2 Algorithm. The algorithms used in this class are Copyright by Ewe Leonties taken from the C-Classes he wrote as diploma thesis. The conversion to Java and the percentage displays have been done by the authors mentioned below.
Field Summary | |
---|---|
protected Vector |
eigenvalueVector
|
protected static Logger |
localLogger
|
protected double[][] |
X
|
Constructor Summary | |
---|---|
SVI2()
Constructor |
Method Summary | |
---|---|
protected int |
cholesky(int n,
double[] A,
int[] D)
Calculate the Cholesky (by Ewe Leonties) A is changed in the progress containing the result |
boolean |
compute(int n,
int p,
int[] D,
double[] LA,
double[] LB,
double eps,
int maxit)
Simultane vector-iteration to solve the general EWA A * x = lam * B * x |
Vector |
getEigenvalueVector()
Grab the vector holding the calculated eigenvalues (you need to call compute()) first |
double[][] |
getEigenvectorArray()
Grab the double array holding the calculated eigenvectors (you need to call compute()) first |
protected void |
initx(int p,
int n,
double[][] X)
Init the Matrix X with random numbers 0 <= xij <= 1 |
protected void |
mlenv(int n,
int p,
double[] L,
int[] D,
double[][] X,
double[][] Y)
Multiplies the left-triangle-matrix L with matrix X |
protected void |
mltenv(int n,
int p,
double[] L,
int[] D,
double[][] X,
double[][] Y)
Multiplies the left-triangle-matrix LT with Matrix X |
protected void |
mvrenv(int n,
int p,
double[] L,
int[] D,
double[][] B,
double[][] X)
Solves the matrix calculation L * LT * X = B via "Vorwaerts- und Rueckwaertseinsetzen" |
protected void |
ortnor(int n,
int p,
double[][] Z,
double[] Q)
Orthonormizes the Matrix Z |
protected void |
renv(int n,
int p,
int[] D,
double[] L,
double[][] X)
Solves LT * H = X |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Vector eigenvalueVector
protected static Logger localLogger
protected double[][] X
Constructor Detail |
---|
public SVI2()
Method Detail |
---|
protected int cholesky(int n, double[] A, int[] D)
n,
- size of Matrix AA,
- Matrix A in HullMatrix styleD,
- diagonal pointer vector
public boolean compute(int n, int p, int[] D, double[] LA, double[] LB, double eps, int maxit)
n,
- size of matrix A and Bp,
- number of wanted eigenvalues and eigenvectorsD,
- diagonal pointer vectorLA,
- matrix A in HullMatrix styleLB,
- matrix B in hullMatrix styleeps,
- calculation precisionmaxit,
- maximum number of iterations
public Vector getEigenvalueVector()
public double[][] getEigenvectorArray()
protected void initx(int p, int n, double[][] X)
p,
- the dimension of Xn,
- the dimension of XX,
- RETURN VALUE, linear independent start vectorsprotected void mlenv(int n, int p, double[] L, int[] D, double[][] X, double[][] Y)
n,
- dimension of matrix xp,
- dimension of matrix xL,
- left-triangle-matrix in HullMatrix styleD,
- diagonal pointer vectorX,
- matrix XY,
- RETURN VALUEprotected void mltenv(int n, int p, double[] L, int[] D, double[][] X, double[][] Y)
n,
- dimension of Xp,
- dimension of XL,
- left-triangle-matrix in HullMatrix styleD,
- diagonal pointer vectorX,
- matrix XY,
- RETURN VALUEprotected void mvrenv(int n, int p, double[] L, int[] D, double[][] B, double[][] X)
n,
- dimension of Xp,
- dimension of XL,
- left-triangle-matrix in HullMatrix styleD,
- diagonal pointer vectorB,
- right side matrixX,
- RETURN VALUEprotected void ortnor(int n, int p, double[][] Z, double[] Q)
n,
- dimension of Zp,
- dimension of ZZ,
- matrix Z with p linear independent vectors, RETURN VALUEQ
- protected void renv(int n, int p, int[] D, double[] L, double[][] X)
n,
- dimension of matrix Xp,
- dimension of matrix XD,
- diagonal pointer vectorL,
- left-triangle-matrix in HullMatrix styleX,
- RETURN VALUE, result matrix H replaces X
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |