NAG CL Interface
f07jrc (zpttrf)

Settings help

CL Name Style:


1 Purpose

f07jrc computes the modified Cholesky factorization of a complex n × n Hermitian positive definite tridiagonal matrix A .

2 Specification

#include <nag.h>
void  f07jrc (Integer n, double d[], Complex e[], NagError *fail)
The function may be called by the names: f07jrc, nag_lapacklin_zpttrf or nag_zpttrf.

3 Description

f07jrc factorizes the matrix A as
A=LDLH ,  
where L is a unit lower bidiagonal matrix and D is a diagonal matrix with positive diagonal elements. The factorization may also be regarded as having the form UHDU , where U is a unit upper bidiagonal matrix.

4 References

None.

5 Arguments

1: n Integer Input
On entry: n, the order of the matrix A.
Constraint: n0.
2: d[dim] double Input/Output
Note: the dimension, dim, of the array d must be at least max(1,n).
On entry: must contain the n diagonal elements of the matrix A.
On exit: is overwritten by the n diagonal elements of the diagonal matrix D from the LDLH factorization of A.
3: e[dim] Complex Input/Output
Note: the dimension, dim, of the array e must be at least max(1,n-1).
On entry: must contain the (n-1) subdiagonal elements of the matrix A.
On exit: is overwritten by the (n-1) subdiagonal elements of the lower bidiagonal matrix L. (e can also be regarded as containing the (n-1) superdiagonal elements of the upper bidiagonal matrix U.)
4: fail NagError * Input/Output
The NAG error argument (see Section 7 in the Introduction to the NAG Library CL Interface).

6 Error Indicators and Warnings

NE_ALLOC_FAIL
Dynamic memory allocation failed.
See Section 3.1.2 in the Introduction to the NAG Library CL Interface for further information.
NE_BAD_PARAM
On entry, argument value had an illegal value.
NE_INT
On entry, n=value.
Constraint: n0.
NE_INTERNAL_ERROR
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact NAG for assistance.
See Section 7.5 in the Introduction to the NAG Library CL Interface for further information.
NE_MAT_NOT_POS_DEF
The leading minor of order n is not positive definite, the factorization was completed, but d[n-1]0.
The leading minor of order value is not positive definite, the factorization could not be completed.
NE_NO_LICENCE
Your licence key may have expired or may not have been installed correctly.
See Section 8 in the Introduction to the NAG Library CL Interface for further information.

7 Accuracy

The computed factorization satisfies an equation of the form
A+E=LDLH ,  
where
E=O(ε)A  
and ε is the machine precision.
Following the use of this function, f07jsc can be used to solve systems of equations AX=B , and f07juc can be used to estimate the condition number of A .

8 Parallelism and Performance

Background information to multithreading can be found in the Multithreading documentation.
f07jrc is not threaded in any implementation.

9 Further Comments

The total number of floating-point operations required to factorize the matrix A is proportional to n .
The real analogue of this function is f07jdc.

10 Example

This example factorizes the Hermitian positive definite tridiagonal matrix A given by
A = ( 16.0i+00.0 16.0-16.0i 0.0i+0.0 0.0i+0.0 16.0+16.0i 41.0i+00.0 18.0+9.0i 0.0i+0.0 0.0i+00.0 18.0-09.0i 46.0i+0.0 1.0+4.0i 0.0i+00.0 0.0i+00.0 1.0-4.0i 21.0i+0.0 ) .  

10.1 Program Text

Program Text (f07jrce.c)

10.2 Program Data

Program Data (f07jrce.d)

10.3 Program Results

Program Results (f07jrce.r)