function SvdSymLargest(const S, Residuals: TVec; const V: TMtx; DesiredSCount: integer; RightVectors: boolean = false ; const fpm: TIntegerArray = nil ): integer; overload;
Computes largest singular values and signular vectors for symmetric sparse matrix.
| # | Name | Description |
|---|---|---|
| 1 | S | Returns the singular values. |
| 2 | Residuals | Returns the relative residual vector |
| 3 | V | Returns left singular vectors in rows. Pass nil for this parameter, if you don't require singular vectors, |
| 4 | DesiredSCount | The function will return up to DesiredSCount largest singular values. |
| 5 | RightVectors | When V is not nil, left singular vectors are returned by default. Set this parameter to True, to obtain right singular vectors. |
| 6 | fpm | Processing parameter list. Leave nil, to use default values. Alternatively, it is possible to specify an array of parameters "fpm" as the last parameter to the routine (Reference: Intel MKL manual). "fpm" Optional: 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]" 0. Reserved for future use. "fpm[1]" 6. Defines the tolerance for the stopping criteria: tol = 10-pm 1 + 1 "fpm[2]" 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. It is possible, that the function does not return an error, but the result is not correct, if the requsted tolerance is to high (fpm[1] is too big, asking for too small value).
The sparse matrix must be symmetric and it must use full storage.
Important:
- The routine does not check, if the matrix is symmetric.
- Inclusion of explicit zero valued elements could cause access violation.