public class PnLanczos
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
PnLanczos.PnMatrixVectorProductIf
Interface encapsulating the product of a vector v with
a square matrix A: A*v.
|
| Constructor and Description |
|---|
PnLanczos(PnLanczos.PnMatrixVectorProductIf product) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeEigenpairs(PdVector values,
PdVector[] vectors,
int count)
Compute spectrum of incomplete tridiagonalization T.
|
void |
computeEigenpairs(PdVector values,
PdVector[] vectors,
int count,
int offset,
int dim)
Compute spectrum of incomplete tridiagonalization T.
|
PdVector |
getRitzVector(PdVector v)
Compute Ritz-vector using lanczos vector.
|
void |
tridiagonalize(PdVector diagonal,
PdVector offDiagonal,
int dimension)
Compute tridiagonalization T of symmetric matrix.
|
public PnLanczos(PnLanczos.PnMatrixVectorProductIf product)
public void tridiagonalize(PdVector diagonal, PdVector offDiagonal, int dimension)
diagonal - vector holding diagonal elements of tridiagonalizationoffDiagonal - vector holding off-diagonal elementsdimension - determines dimension of Tpublic PdVector getRitzVector(PdVector v)
v - eigenvector of tridiagonalizationpublic void computeEigenpairs(PdVector values, PdVector[] vectors, int count)
values - elements will be overriden with eigenvaluesvectors - empty array for storing the eigenvectorscount - number of computed eigenpairspublic void computeEigenpairs(PdVector values, PdVector[] vectors, int count, int offset, int dim)
values - elements will be overriden with eigenvaluesvectors - empty array for storing the eigenvectorscount - number of computed eigenpairsoffset - startindex for the results in values and vectorsdim - dimension of tridiagonalization (must be
greater than vectors)"