|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbijnum.BIJJacobi
public class BIJJacobi
This class implements the jacobi function as a Java class. Redesigned to be faster, for float. Internal calculations are still double though. From Press et al., 2nd ed., Numerical Solutions in C.
for the original sources which I kept to be sure because they worked.
Copyright (c) 1999-2003, Michael Abramoff. All rights reserved.| Field Summary | |
|---|---|
float[][] |
a
The matrix of which you want to compute E. |
float[] |
eigenvalues
|
float[][] |
eigenvectors
|
| Constructor Summary | |
|---|---|
BIJJacobi(float[][] m)
Create new instance to compute eigenvectors, eigenvalues. |
|
BIJJacobi(float[][] m,
boolean doFeedback)
Create new instance to compute eigenvectors, eigenvalues. |
|
| Method Summary | |
|---|---|
void |
compute()
Compute all eigenvalues and eigenvectors of a real symmetric matrix a[N][N]. |
int |
nrot()
|
void |
sort()
Sort the eigenvalues/eigenvectors on the basis of the eigenvalues, largest first. |
int |
sweeps()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public float[][] a
public float[][] eigenvectors
public float[] eigenvalues
| Constructor Detail |
|---|
public BIJJacobi(float[][] m,
boolean doFeedback)
m - a real, symmetric matrix of nxn.doFeedback, - whether a progress routine should be called after each sweep (only for user interaction).public BIJJacobi(float[][] m)
m - a real symmetric matrix of NxN.| Method Detail |
|---|
public void compute()
public void sort()
public int nrot()
public int sweeps()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||