nag_dsptri (f07pjc) computes the inverse of a real symmetric indefinite matrix
, where
has been factorized by
nag_dsptrf (f07pdc), using packed storage.
nag_dsptri (f07pjc) is used to compute the inverse of a real symmetric indefinite matrix
, the function must be preceded by a call to
nag_dsptrf (f07pdc), which computes the Bunch–Kaufman factorization of
, using packed storage.
The computed inverse
satisfies a bound of the form
- if , ;
- if , ,
is a modest linear function of
, and
is the
machine precision.
The complex analogues of this function are
nag_zhptri (f07pwc) for Hermitian matrices and
nag_zsptri (f07qwc) for symmetric matrices.
This example computes the inverse of the matrix
, where
Here
is symmetric indefinite, stored in packed form, and must first be factorized by
nag_dsptrf (f07pdc).