naginterfaces.library.blas.dgemv

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

dgemv computes the matrix-vector product for a real general matrix or its transpose.

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

https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/f06/f06paf.html

Parameters
transstr, length 1

Specifies the operation to be performed.

.

or

.

mint

, the number of rows of the matrix .

alphafloat

The scalar .

afloat, array-like, shape

The matrix .

xfloat, array-like, shape

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

The vector .

betafloat

The scalar .

yNone or float, 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
yfloat, 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.

dgemv performs one of the matrix-vector operations

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

If or , no operation is performed.