# naginterfaces.library.lapacklin.dptcon¶

naginterfaces.library.lapacklin.dptcon(n, d, e, anorm)[source]

dptcon computes the reciprocal condition number of a real symmetric positive definite tridiagonal matrix , using the factorization returned by dpttrf().

For full information please refer to the NAG Library document for f07jg

https://www.nag.com/numeric/nl/nagdoc_29/flhtml/f07/f07jgf.html

Parameters
nint

, the order of the matrix .

dfloat, array-like, shape

Must contain the diagonal elements of the diagonal matrix from the factorization of .

efloat, array-like, shape

Must contain the subdiagonal elements of the unit lower bidiagonal matrix . ( can also be regarded as the superdiagonal of the unit upper bidiagonal matrix from the factorization of .)

anormfloat

The -norm of the original matrix , which may be computed by calling blas.dlanst with its argument . must be computed either before calling dpttrf() or else from a copy of the original matrix .

Returns
rcondfloat

The reciprocal condition number, .

Raises
NagValueError
(errno )

On entry, error in parameter .

Constraint: .

(errno )

On entry, error in parameter .

Constraint: .

Notes

dptcon should be preceded by a call to dpttrf(), which computes a modified Cholesky factorization of the matrix as

where is a unit lower bidiagonal matrix and is a diagonal matrix, with positive diagonal elements. dptcon then utilizes the factorization to compute by a direct method, from which the reciprocal of the condition number of , is computed as

is returned, rather than , since when is singular is infinite.

References

Higham, N J, 2002, Accuracy and Stability of Numerical Algorithms, (2nd Edition), SIAM, Philadelphia