|
FILTLAN 1.0a
|
An interface to define R(S), i.e. set R and S, and compute R(S)*v, where R is the residual polynomial, S is a sparse matrix, and v is a vector. More...
#include <polyfilt.h>
Static Public Member Functions | |
| static Vector | setFilter (const SparseMatrix &S0, const Vector &frame, mkIndex polyDeg, mkIndex baseDeg, IntervalOptions &opts) |
| This member function sets the sparse matrix S translated from S0, and also the base filter P(z). | |
| static Vector | filteredSparseMatrixPolynomialVectorProduct (const Vector &v) |
| This routine computes R(S)*v, where it is assumed that S and R(S) have been defined by setFilter(). | |
Static Public Attributes | |
| static PolynomialFilterInfo | filterInfo |
| The information of computing the polynomial filter. See class PolynomialFilterInfo in polyfilt.h for more information. | |
Static Private Attributes | |
| static const SparseMatrix * | Sptr |
| A pointer to the input sparse symmetric matrix via setFilter(). | |
| static SparseMatrix | S |
| The sparse symmetric matrix S in computing R(S)*v; S is translated from the input sparse symmetric matrix S0 in setFilter(). | |
| static Vector | intervals |
| The jth interval is [intervals(j),intervals(j+1)). | |
| static Vector | intervalWeights |
| intervalWeights(j) is the weight of jth interval [intervals(j),intervals(j+1)). | |
| static mkIndex | polyDegree |
| Maximum possible degree of s(z), with z*s(z) the polynomial filter. | |
| static mkIndex | baseDegree |
| Left-and-right degree of the base filter in each interval. | |
| static Matrix | baseFilter |
| A base filter, which is a piecewise polynomial typically from Hermite interpolation. | |
| static Vector | zn |
| A zero vector of length the number of rows/columns of S. | |
An interface to define R(S), i.e. set R and S, and compute R(S)*v, where R is the residual polynomial, S is a sparse matrix, and v is a vector.
In short, use setFilter() to define R(S) once, and use filteredSparseMatrixPolynomialVectorProduct() to compute R(S)*v for every v.
| static Vector PolynomialFilterInterface::filteredSparseMatrixPolynomialVectorProduct | ( | const Vector & | v | ) | [inline, static] |
This routine computes R(S)*v, where it is assumed that S and R(S) have been defined by setFilter().
| static Vector PolynomialFilterInterface::setFilter | ( | const SparseMatrix & | S0, |
| const Vector & | frame, | ||
| mkIndex | polyDeg, | ||
| mkIndex | baseDeg, | ||
| IntervalOptions & | opts | ||
| ) | [static] |
This member function sets the sparse matrix S translated from S0, and also the base filter P(z).
| S0 | is the sparse symmetric matrix of concern. |
| frame | is a vector of 4 ordered elements. [frame(1),frame(4)] is the interval which (tightly) contains all eigenvalues of S0, and [frame(2),frame(3)] is the interval in which the eigenvalues of S0 are sought. |
| polyDeg | is the (maximum possible) degree of s(z), with z*s(z) the polynomial filter. |
| baseDeg | is the left-and-right degree of the base filter for each interval. |
| opts | is a collection of options to determine the intervals. |
Matrix PolynomialFilterInterface::baseFilter [static, private] |
A base filter, which is a piecewise polynomial typically from Hermite interpolation.
For jth interval, the polynomial is expanded in the `translated' (scale-and-shift) Chebyshev basis, with the Chebyshev coefficients stored in baseFilter(:,j).
Vector PolynomialFilterInterface::intervals [static, private] |
The jth interval is [intervals(j),intervals(j+1)).
The intervals are decided by GetIntervals() invoked by setFilter() which takes parameters frame, baseDeg, and polyDeg:
1.7.3