naginterfaces.library.lapacklin.ztptri

naginterfaces.library.lapacklin.ztptri(uplo, diag, n, ap)[source]

ztptri computes the inverse of a complex triangular matrix, using packed storage.

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

https://www.nag.com/numeric/nl/nagdoc_27.3/flhtml/f07/f07uwf.html

Parameters
uplostr, length 1

Specifies whether is upper or lower triangular.

is upper triangular.

is lower triangular.

diagstr, length 1

Indicates whether is a nonunit or unit triangular matrix.

is a nonunit triangular matrix.

is a unit triangular matrix; the diagonal elements are not referenced and are assumed to be .

nint

, the order of the matrix .

apcomplex, array-like, shape

The triangular matrix , packed by columns.

Returns
apcomplex, ndarray, shape

is overwritten by , using the same storage format as described above.

Raises
NagValueError
(errno )

On entry, error in parameter .

Constraint: or .

(errno )

On entry, error in parameter .

Constraint: or .

(errno )

On entry, error in parameter .

Constraint: .

Warns
NagAlgorithmicWarning
(errno )

Element of the diagonal is exactly zero. is singular its inverse cannot be computed.

Notes

ztptri forms the inverse of a complex triangular matrix , using packed storage. Note that the inverse of an upper (lower) triangular matrix is also upper (lower) triangular.

References

Du Croz, J J and Higham, N J, 1992, Stability of methods for matrix inversion, IMA J. Numer. Anal. (12), 1–19