F07MRF (ZHETRF) computes the Bunch–Kaufman factorization of a complex Hermitian indefinite matrix.
This method is suitable for Hermitian matrices which are not known to be positive definite. If is in fact positive definite, no interchanges are performed and no by blocks occur in .
If
, the computed factors
and
are the exact factors of a perturbed matrix
, where
is a modest linear function of
, and
is the
machine precision.
The elements of
overwrite the corresponding elements of
; if
has
by
blocks, only the upper or lower triangle is stored, as specified by
UPLO.
The unit diagonal elements of
or
and the
by
unit diagonal blocks are not stored. The remaining elements of
or
are stored in the corresponding columns of the array
A, but additional row interchanges must be applied to recover
or
explicitly (this is seldom necessary). If
, for
(as is the case when
is positive definite), then
or
is stored explicitly (except for its unit diagonal elements which are equal to
).
A call to F07MRF (ZHETRF) may be followed by calls to the routines:
The real analogue of this routine is
F07MDF (DSYTRF).
This example computes the Bunch–Kaufman factorization of the matrix
, where