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
);
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

in
uplo

Specifies 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

in
n

The order of the matrix A. n >= 0.

in
alpha

The scalar alpha.

in
AP

The packed matrix A. Dimension at least (n*(n+1))/2.

in
X

The vector x. Dimension at least (1 + (n-1)*abs(incx)).

in
incx

The increment for elements of X. incx != 0.

in
beta

The scalar beta.

inout
Y

The vector y. Dimension at least (1 + (n-1)*abs(incy)).

in
incy

The increment for elements of Y. incy != 0.

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
);
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

in
uplo

Specifies 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

in
n

The order of the matrix A. n >= 0.

in
alpha

The scalar alpha.

in
AP

The packed matrix A. Dimension at least (n*(n+1))/2.

in
X

The vector x. Dimension at least (1 + (n-1)*abs(incx)).

in
incx

The increment for elements of X. incx != 0.

in
beta

The scalar beta.

inout
Y

The vector y. Dimension at least (1 + (n-1)*abs(incy)).

in
incy

The increment for elements of Y. incy != 0.