# naginterfaces.library.blas.zhesrc¶

naginterfaces.library.blas.zhesrc(uplo, pivot, direct, k1, k2, c, s, a)[source]

zhesrc performs a Unitary similarity transformation (as a sequence of plane rotations) of a complex Hermitian matrix.

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

https://www.nag.com/numeric/nl/nagdoc_28.7/flhtml/f06/f06tmf.html

Parameters
uplostr, length 1

Specifies whether the upper or lower triangular part of is stored.

The upper triangular part of is stored.

The lower triangular part of is stored.

pivotstr, length 1

Specifies the plane rotated by .

(variable pivot)

rotates the plane.

(top pivot)

rotates the plane.

(bottom pivot)

rotates the plane.

directstr, length 1

Specifies the sequence direction.

(forward sequence)

.

(backward sequence)

.

k1int

The value .

k2int

The value .

cfloat, array-like, shape

must hold , the cosine of the rotation , for .

scomplex, array-like, shape

must hold , the sine of the rotation , for .

acomplex, array-like, shape

The Hermitian matrix .

Returns
acomplex, ndarray, shape

The transformed matrix . The imaginary parts of the diagonal elements are set to zero.

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: or .

(errno )

On entry, error in parameter .

Constraint: .

Notes

No equivalent traditional C interface for this routine exists in the NAG Library.

zhesrc performs the transformation

where is an complex Hermitian matrix, and is a complex unitary matrix defined as a sequence of plane rotations, , applied in planes to .

The plane rotation part of is assumed to have the form

with real.