naginterfaces.library.blas.zgemv

naginterfaces.library.blas.zgemv(trans, m, alpha, a, x, beta, y=None)[source]

zgemv computes the matrix-vector product for a complex general matrix, its transpose or its conjugate transpose.

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

https://www.nag.com/numeric/nl/nagdoc_28.5/flhtml/f06/f06saf.html

Parameters
transstr, length 1

Specifies the operation to be performed.

.

.

.

mint

, the number of rows of the matrix .

alphacomplex

The scalar .

acomplex, array-like, shape

The matrix .

xcomplex, array-like, shape

Note: the required length for this argument is determined as follows: if : ; if : ; otherwise: .

The vector .

betacomplex

The scalar .

yNone or complex, array-like, shape , optional

Note: the required length for this argument is determined as follows: if : ; if : ; otherwise: .

The vector , if , need not be set.

Returns
ycomplex, ndarray, shape

The updated vector .

Raises
NagValueError
(errno )

On entry, error in parameter .

Constraint: , or .

(errno )

On entry, error in parameter .

Constraint: .

(errno )

On entry, error in parameter .

Constraint: .

(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.

zgemv performs one of the matrix-vector operations

where is an complex matrix, and are complex vectors, and and are complex scalars.

If or , no operation is performed.