|
NAG[f07mrc] NAG[nag_zhetrf] - Bunch–Kaufman factorization of complex Hermitian indefinite matrix
|
|
Calling Sequence
f07mrc(uplo, a, ipiv, 'n'=n, 'fail'=fail)
nag_zhetrf(. . .)
Parameters
|
uplo - String;
|
|
|
On entry: indicates whether the upper or lower triangular part of is stored and how has been factorized.
|
|
Constraint: "Nag_Upper" or "Nag_Lower". .
|
|
|
a - Matrix(1..dim1, 1..dim2, datatype=complex[8], order=order);
|
|
|
Note: this array may be supplied in Fortran_order or C_order , as specified by order. All array parameters must use a consistent order.
|
|
If , the upper triangle of must be stored and the elements of the array below the diagonal are not referenced.
|
|
If , the lower triangle of must be stored and the elements of the array above the diagonal are not referenced.
|
|
|
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,
|
|
|
'n'=n - integer; (optional)
|
|
|
Default value: the dimension of the array a.
|
|
On entry: , the order of the matrix .
|
|
Constraint: . .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_zhetrf (f07mrc) computes the Bunch–Kaufman factorization of a complex Hermitian indefinite matrix.
|
|
Error Indicators and Warnings
|
|
"NE_ALLOC_FAIL"
Dynamic memory allocation failed.
"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:
a := Matrix([[-1.36 +0*I , 1.58 +0.9*I , 2.21 -0.21*I , 3.91 +1.5*I ], [0 +0*I , -8.869999999999999 +0*I , -1.84 -0.03*I , -1.78 +1.18*I ], [0 +0*I , 0 +0*I , -4.63 +0*I , 0.11 +0.11*I ], [0 +0*I , 0 +0*I , 0 +0*I , -1.84 +0*I ]], datatype=complex[8], order='C_order'):
ipiv := Vector(4, datatype=integer[kernelopts('wordsize')/8]):
NAG:-f07mrc(uplo, a, ipiv, 'n' = n):
|
|
|