Function: hgemv

C Prototype

aclError aclblasHgemv(aclTransType transA,

int m,

int n,

const aclFloat16 *alpha,

const aclFloat16 *a,

int lda,

const aclFloat16 *x,

int incx,

const aclFloat16 *beta,

aclFloat16 *y,

int incy,

aclComputeType type,

aclrtStream stream)

Python Function

ret = acl.blas.hgemv(trans_a, m, n, alpha, a, lda, x, incx, beta, y, incy, type, stream)

Function Usage

Computes matrix-vector multiplication: y = αAx + βy. The inputs and outputs are all of data type aclFloat16. This API is asynchronous.

Input Description

trans_a: int, whether matrix A is transposed.

m: int, number of rows in matrix A (row-major first in data storing).

n: int, number of columns in matrix A.

alpha: int, data pointer address of Scalar α used for executing the multiplication operation.

a: int, data pointer address of matrix A.

lda: int, leading dimension of matrix A. For row-major transpose, lda is the number of columns of matrix A. This parameter is reserved and can only be set to –1.

x: int, data pointer address of vector x.

incx: int, increment between successive x elements. This parameter is reserved and can only be set to –1.

beta: int, data pointer address of Scalar β used for executing the multiplication operation.

y: int, data pointer address of vector y.

incy: int, increment between successive y elements. This parameter is reserved and can only be set to –1.

type: int, calculation precision.

stream: int, stream where the operator is executed.

Return Value

ret: int, error code.

Restrictions

None

Reference

For details about the API call sequence, see API Call Sequence.