function EigSymGenSmallest(const B: TSparseMtx; const D, Residuals: TVec; const EigVectors: TMtx; DesiredEigCount: integer; const fpm: TIntegerArray = nil ): integer;
Computes smallest generalized eigenvalues and eigenvectors for a symmetric sparse matrix.
| # | Name | Description |
|---|---|---|
| 1 | B | The sparse matrix B, which must be symmetric, positive definite and have full storage. |
| 2 | D | Returns the eigenvalues. |
| 3 | Residuals | Returns the relative residual vector |
| 4 | EigVectors | Returns the eigenvectors in rows. Pass nil for this parameter, if you don't require eigen-vectors, |
| 5 | DesiredEigCount | The function will return up to DesiredEigCount smallest eigen values. |
| 6 | fpm | Optiona: processing parameter list. Leave nil, to use default values. If you do pass this parameter, its length must be minimum 129 items. (Reference: Intel MKL manual). "fpm[0]" Reserved for future use. "fpm[1]" Default 6. Defines the tolerance for the stopping criteria: tol = 10-pm 1 + 1 "fpm[2]" Default 0. Specifies the algorithm to use:
|
Returns: integer - The function will return the number of actually found eigen-values. If there was an error during evaluation, an exception will be raised with an error message.
Solves: Ax = lambda Bx
The sparse matrix must be symmetric and it must use full storage. The function will return up to EigCount smallest eigen values.
Important:
- The routine does not check, if the matrix is symmetric.
- Inclusion of explicit zero valued elements could cause access violation.