public class PnJacobi extends PsObject
Modifier and Type | Field and Description |
---|---|
static int |
FAILURE
Return value of computation method if failure.
|
static int |
INTERRUPTED
Return value of computation method if interrupted from outside.
|
HAS_BOUNDARY_PANEL, HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS
Constructor and Description |
---|
PnJacobi() |
Modifier and Type | Method and Description |
---|---|
static int |
computeEigenvectors(PdMatrix mat,
int dim,
PdVector eValue,
PdVector[] eVector)
Compute eigenvectors and eigenvalues of a given matrix and store in result vectors.
|
static int |
fcomputeEigenvectors(PdMatrix mat,
int dim,
PdVector eValue,
PdVector[] eVector)
Compute eigenvectors and eigenvalues of a given matrix and store in result vectors.
|
boolean |
isDoublePrecision() |
static boolean |
isInterrupted()
Get flag if the previous computation was interrupted from outside.
|
static void |
printEigenvalues(int dim,
PdVector eValue) |
static void |
printEigenvectors(int dim,
PdVector eValue,
PdVector[] eVector) |
void |
setDoublePrecision(boolean flag)
Set flag weather computations are done in double or single precision.
|
static void |
setInterrupted(boolean flag)
Flag set from outside to interrupt the current computation.
|
static boolean |
test(PdMatrix mat,
int dim,
PdVector eValue,
PdVector[] eVector) |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, init, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, update, updatePanels
public static final int FAILURE
public static final int INTERRUPTED
public static void setInterrupted(boolean flag)
public static boolean isInterrupted()
public void setDoublePrecision(boolean flag)
public boolean isDoublePrecision()
public static int computeEigenvectors(PdMatrix mat, int dim, PdVector eValue, PdVector[] eVector)
This method uses double-precision.
See fcomputeEigenvectors
which uses float-precision.
mat
- Matrix whose eigenvalues and -vectors should be computed.dim
- Size of square matrix, length of vectorseValue
- Vector to store the computed eigenvalueseVector
- Array of vectors to store the computed eigenvectorspublic static int fcomputeEigenvectors(PdMatrix mat, int dim, PdVector eValue, PdVector[] eVector)
This method uses float-precision. See computeEigenvectors
which uses double-precision.
mat
- Matrix whose eigenvalues and -vectors should be computed.dim
- Size of square matrix, length of vectorseValue
- Vector to store the computed eigenvalueseVector
- Array of vectors to store the computed eigenvectorspublic static void printEigenvectors(int dim, PdVector eValue, PdVector[] eVector)
public static void printEigenvalues(int dim, PdVector eValue)
"