The routine may be called by the names f01mef or nagf_matop_real_mod_chol_perturbed_a.
f01mef computes the positive definite perturbed matrix from the factors provided by a previous call to f01mdf. For a symmetric, possibly indefinite matrix , f01mdf finds the Cheng–Higham modified Cholesky factorization
when . Here is a unit lower triangular matrix, is a permutation matrix, is a symmetric block diagonal matrix (with blocks of order or ). The matrix is not explicitly formed.
If , we compute from the factorization , where is a unit upper triangular matrix.
Cheng S H and Higham N J (1998) A modified Cholesky algorithm based on a symmetric indefinite factorization SIAM J. Matrix Anal. Appl. 19(4) 1097–1110
1: – Character(1)Input
On entry: indicates whether the upper or lower triangular part of was stored and how it was factorized.
The upper triangular part of was stored and we compute such that .
The lower triangular part of was stored and we compute such that .
2: – IntegerInput
On entry: , the order of the matrix .
3: – Real (Kind=nag_wp) arrayInput/Output
Note: the second dimension of the array a
must be at least
On entry: the modified Cholesky factor of , as returned by f01mdf.
If , the upper triangular part of is returned and the elements of the array below the diagonal are not referenced.
If , the lower triangular part of is returned and the elements of the array above the diagonal are not referenced.
4: – IntegerInput
On entry: the first dimension of the array a as declared in the (sub)program from which f01mef is called.
On entry: ifail must be set to , or to set behaviour on detection of an error; these values have no effect when no error is detected.
A value of causes the printing of an error message and program execution will be halted; otherwise program execution continues. A value of means that an error message is printed while a value of means that it is not.
If halting is not appropriate, the value or is recommended. If message printing is undesirable, then the value is recommended. Otherwise, the value is recommended. When the value or is used it is essential to test the value of ifail on exit.
On exit: unless the routine detects an error or a warning has been flagged (see Section 6).
6Error Indicators and Warnings
If on entry or , explanatory error messages are output on the current error message unit (as defined by x04aaf).
Errors or warnings detected by the routine:
On entry, . Constraint: or .
On entry, .
On entry, and .
An unexpected error has been triggered by this routine. Please
See Section 7 in the Introduction to the NAG Library FL Interface for further information.
Your licence key may have expired or may not have been installed correctly.
See Section 8 in the Introduction to the NAG Library FL Interface for further information.
Dynamic memory allocation failed.
See Section 9 in the Introduction to the NAG Library FL Interface for further information.
See Section 7 in f01mdf for an indication of the accuracy of the computed factors , , and .
8Parallelism and Performance
Background information to multithreading can be found in the Multithreading documentation.
f01mef is threaded by NAG for parallel execution in multithreaded implementations of the NAG Library.
f01mef makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
Please consult the X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this routine. Please also consult the Users' Note for your implementation for any additional implementation-specific information.
Arrays are internally allocated by f01mef. The total size of these arrays does not exceed real elements. All allocated memory is freed before return of f01mef.