BLAS++ 2024.05.31
BLAS C++ API
Loading...
Searching...
No Matches
hemv: Hermitian matrix-vector multiply

\(y = \alpha Ax + \beta y\) More...

Functions

template<typename TA , typename TX , typename TY >
void blas::hemv (blas::Layout layout, blas::Uplo uplo, int64_t n, blas::scalar_type< TA, TX, TY > alpha, TA const *A, int64_t lda, TX const *x, int64_t incx, blas::scalar_type< TA, TX, TY > beta, TY *y, int64_t incy)
 Hermitian matrix-vector multiply:
 
void blas::hemv (blas::Layout layout, blas::Uplo uplo, int64_t n, float alpha, float const *A, int64_t lda, float const *x, int64_t incx, float beta, float *y, int64_t incy)
 CPU, float version.
 
void blas::hemv (blas::Layout layout, blas::Uplo uplo, int64_t n, double alpha, double const *A, int64_t lda, double const *x, int64_t incx, double beta, double *y, int64_t incy)
 CPU, double version.
 
void blas::hemv (blas::Layout layout, blas::Uplo uplo, int64_t n, std::complex< float > alpha, std::complex< float > const *A, int64_t lda, std::complex< float > const *x, int64_t incx, std::complex< float > beta, std::complex< float > *y, int64_t incy)
 CPU, complex<float> version.
 
void blas::hemv (blas::Layout layout, blas::Uplo uplo, int64_t n, std::complex< double > alpha, std::complex< double > const *A, int64_t lda, std::complex< double > const *x, int64_t incx, std::complex< double > beta, std::complex< double > *y, int64_t incy)
 CPU, complex<double> version.
 

Detailed Description

\(y = \alpha Ax + \beta y\)

Function Documentation

◆ hemv()

template<typename TA , typename TX , typename TY >
void blas::hemv ( blas::Layout  layout,
blas::Uplo  uplo,
int64_t  n,
blas::scalar_type< TA, TX, TY >  alpha,
TA const *  A,
int64_t  lda,
TX const *  x,
int64_t  incx,
blas::scalar_type< TA, TX, TY >  beta,
TY *  y,
int64_t  incy 
)

Hermitian matrix-vector multiply:

\[ y = \alpha A x + \beta y, \]

where alpha and beta are scalars, x and y are vectors, and A is an n-by-n Hermitian matrix.

Generic implementation for arbitrary data types.

Parameters
[in]layoutMatrix storage, Layout::ColMajor or Layout::RowMajor.
[in]uploWhat part of the matrix A is referenced, the opposite triangle being assumed from symmetry.
  • Uplo::Lower: only the lower triangular part of A is referenced.
  • Uplo::Upper: only the upper triangular part of A is referenced.
[in]nNumber of rows and columns of the matrix A. n >= 0.
[in]alphaScalar alpha. If alpha is zero, A and x are not accessed.
[in]AThe n-by-n matrix A, stored in an lda-by-n array [RowMajor: n-by-lda]. Imaginary parts of the diagonal elements need not be set, and are assumed to be zero.
[in]ldaLeading dimension of A. lda >= max(1, n).
[in]xThe n-element vector x, in an array of length (n-1)*abs(incx) + 1.
[in]incxStride between elements of x. incx must not be zero. If incx < 0, uses elements of x in reverse order: x(n-1), ..., x(0).
[in]betaScalar beta. If beta is zero, y need not be set on input.
[in,out]yThe n-element vector y, in an array of length (n-1)*abs(incy) + 1.
[in]incyStride between elements of y. incy must not be zero. If incy < 0, uses elements of y in reverse order: y(n-1), ..., y(0).