|
NAG[f07prc] NAG[nag_zhptrf] - Bunch–Kaufman factorization of complex Hermitian indefinite matrix, packed storage
|
|
Calling Sequence
f07prc(uplo, n, ap, ipiv, 'fail'=fail)
nag_zhptrf(. . .)
Parameters
|
uplo - String;
|
|
|
On entry: indicates whether the upper or lower triangular part of is stored and how is factorized.
|
|
Constraint: "Nag_Upper" or "Nag_Lower". .
|
|
|
n - integer;
|
|
|
On entry: , the order of the matrix .
|
|
Constraint: . .
|
|
|
ap - Vector(1..dim, datatype=complex[8]);
|
|
|
Note: the dimension, dim, of the array ap must be at least .
|
|
On entry: the Hermitian indefinite matrix , packed by rows or columns. The storage of elements depends on the storage order and uplo arguments as follows:
|
|
|
ipiv - Vector(1..dim, datatype=integer[kernelopts('wordsize')/8]);
|
|
|
Note: the dimension, dim, of the array ipiv must be at least .
|
|
On exit: details of the interchanges and the block structure of . More precisely,
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_zhptrf (f07prc) computes the Bunch–Kaufman factorization of a complex Hermitian indefinite matrix, using packed storage.
|
|
Error Indicators and Warnings
|
|
"NE_BAD_PARAM"
On entry, argument had an illegal value.
"NE_INT"
On entry, . Constraint: .
"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 consult NAG for assistance.
"NE_SINGULAR"
The block diagonal matrix is exactly singular.
|
|
|
Examples
|
|
>
|
uplo := "Nag_Upper":
n := 4:
ap := Vector([-1.36 +0*I, 1.58 +0.9*I, 2.21 -0.21*I, 3.91 +1.5*I, -8.869999999999999 +0*I, -1.84 -0.03*I, -1.78 +1.18*I, -4.63 +0*I, 0.11 +0.11*I, -1.84 +0*I], datatype=complex[8], order='C_order'):
ipiv := Vector(4, datatype=integer[kernelopts('wordsize')/8]):
NAG:-f07prc(uplo, n, ap, ipiv):
|
|
|