naginterfaces.library.matop.ztrttp

naginterfaces.library.matop.ztrttp(uplo, a)[source]

ztrttp copies a complex triangular matrix, stored in a full format array, to a packed format array.

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

https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/f01/f01vbf.html

Parameters
uplostr, length 1

Specifies whether is upper or lower triangular.

is upper triangular.

is lower triangular.

acomplex, array-like, shape

The triangular matrix .

Returns
apcomplex, ndarray, shape

The triangular matrix , packed by columns.

Raises
NagValueError
(errno )

On entry, error in parameter .

Constraint: or .

(errno )

On entry, error in parameter .

Constraint: .

Notes

ztrttp packs a complex triangular matrix , stored conventionally in a full format array, into an array of length . The matrix is packed by columns. This function is intended for possible use in conjunction with functions from submodule blas, submodule blast, submodule lapacklin and submodule lapackeig where some functions use triangular matrices stored in the packed form. Packed storage format is described in the F07 Introduction.