public abstract class PnBandEigenSolver extends PsObject
Modifier and Type | Field and Description |
---|---|
static int |
DENSE
fields determing type of matrix for that a band can be computed
|
static int |
SPARSE |
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 |
---|
PnBandEigenSolver() |
Modifier and Type | Method and Description |
---|---|
int |
computeBand(PdVector values,
PdVector[] vectors)
Compute band of the spectrum.
|
int |
getCount() |
abstract int |
getInputType()
|
abstract java.lang.Object |
getMatrix() |
double |
getShift() |
int |
getStepsize() |
boolean |
isAscending() |
abstract boolean |
isAvailable()
Whether solver is available or not.
|
boolean |
isCheckResults() |
void |
setAscending(boolean ascending) |
void |
setCheckResults(boolean check) |
void |
setCount(int count) |
abstract void |
setMatrix(java.lang.Object matrix) |
void |
setShift(double shift) |
void |
setStepsize(int stepsize) |
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 DENSE
public static final int SPARSE
public abstract boolean isAvailable()
public abstract int getInputType()
public abstract void setMatrix(java.lang.Object matrix)
matrix
- PdMatrix
if getInputType()
is DENSE
or
PnSparseMatrix
if it is SPARSE
.public abstract java.lang.Object getMatrix()
public int computeBand(PdVector values, PdVector[] vectors)
values
- Elements will be found eigenvalues.vectors
- Will contain found eigenvectors.public int getStepsize()
public void setStepsize(int stepsize)
stepsize
- Number of eigenparis computed per step
(if too high lanczos-vectors will lose orthogonality).public double getShift()
public void setShift(double shift)
shift
- Initial shift for computation.public boolean isAscending()
public void setAscending(boolean ascending)
ascending
- Flag weather eigenvalues greater or smaller than shift are searched.public int getCount()
public void setCount(int count)
count
- Number of searched eigenvalues.public void setCheckResults(boolean check)
check
- Flag whether quality of computed eigenvalues/-vectors is checked.public boolean isCheckResults()
"