spmv#
Functions
-
void cspmv(const char *uplo, const INT n, const c64 alpha, const c64 *restrict AP, const c64 *restrict X, const INT incx, const c64 beta, c64 *restrict Y, const INT incy)#
CSPMV performs the matrix-vector operation.
y := alpha*A*x + beta*y,
where alpha and beta are scalars, x and y are n element vectors and A is an n by n symmetric matrix, supplied in packed form.
Parameters
inuploSpecifies whether the upper or lower triangular part of the matrix A is supplied in the packed array AP: = ‘U’: Upper triangular part of A is supplied in AP = ‘L’: Lower triangular part of A is supplied in AP
innThe order of the matrix A. n >= 0.
inalphaThe scalar alpha.
inAPThe packed matrix A. Dimension at least (n*(n+1))/2.
inXThe vector x. Dimension at least (1 + (n-1)*abs(incx)).
inincxThe increment for elements of X. incx != 0.
inbetaThe scalar beta.
inoutYThe vector y. Dimension at least (1 + (n-1)*abs(incy)).
inincyThe increment for elements of Y. incy != 0.
void cspmv(
const char* uplo,
const INT n,
const c64 alpha,
const c64* restrict AP,
const c64* restrict X,
const INT incx,
const c64 beta,
c64* restrict Y,
const INT incy
);
Functions
-
void zspmv(const char *uplo, const INT n, const c128 alpha, const c128 *restrict AP, const c128 *restrict X, const INT incx, const c128 beta, c128 *restrict Y, const INT incy)#
ZSPMV performs the matrix-vector operation.
y := alpha*A*x + beta*y,
where alpha and beta are scalars, x and y are n element vectors and A is an n by n symmetric matrix, supplied in packed form.
Parameters
inuploSpecifies whether the upper or lower triangular part of the matrix A is supplied in the packed array AP: = ‘U’: Upper triangular part of A is supplied in AP = ‘L’: Lower triangular part of A is supplied in AP
innThe order of the matrix A. n >= 0.
inalphaThe scalar alpha.
inAPThe packed matrix A. Dimension at least (n*(n+1))/2.
inXThe vector x. Dimension at least (1 + (n-1)*abs(incx)).
inincxThe increment for elements of X. incx != 0.
inbetaThe scalar beta.
inoutYThe vector y. Dimension at least (1 + (n-1)*abs(incy)).
inincyThe increment for elements of Y. incy != 0.
void zspmv(
const char* uplo,
const INT n,
const c128 alpha,
const c128* restrict AP,
const c128* restrict X,
const INT incx,
const c128 beta,
c128* restrict Y,
const INT incy
);