Function: s8gemv

C Prototype

aclError aclblasS8gemv(aclTransType transA,

int m,

int n,

const int32_t *alpha,

const int8_t *a,

int lda,

const int8_t *x,

int incx,

const int32_t *beta,

int32_t *y,

int incy,

aclComputeType type,

aclrtStream stream)

Python Function

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

Function Usage

Computes matrix-vector multiplication: y = αAx + βy. The input data type is int8_t, and the output data type is int32_t. 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.