naginterfaces.library.blas.zherk

naginterfaces.library.blas.zherk(uplo, trans, k, alpha, a, beta, c)[source]

zherk performs one of the Hermitian rank- update operations

where is a complex matrix, is an complex Hermitian matrix, and and are real scalars.

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

https://www.nag.com/numeric/nl/nagdoc_29.3/flhtml/f06/f06zpf.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.

transstr, length 1

Specifies the operation to be performed.

.

.

kint

, the number of columns of if , or the number of rows of if .

alphafloat

The scalar .

acomplex, array-like, shape

Note: the required extent for this argument in dimension 1 is determined as follows: if : ; if : ; otherwise: .

Note: the required extent for this argument in dimension 2 is determined as follows: if : ; if : ; otherwise: .

The matrix ; is if , or if .

betafloat

The scalar .

ccomplex, array-like, shape

The Hermitian matrix .

Returns
ccomplex, ndarray, shape

The updated 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: .

(errno )

On entry, error in parameter .

Constraint: .

Notes

In the NAG Library the traditional C interface for this routine uses a different algorithmic base. Please contact NAG if you have any questions about compatibility.