There are two prototypes of hemv
available, please see below.
hemv( const Scalar >, const MatrixA& a, const VectorX& x, const Scalar >, VectorY& y );
hemv( const Scalar alpha, const MatrixA& a, const VectorX& x, const Scalar beta, VectorY& y );
hemv
(short for hermitian
matrix-vector operation) provides a C++ interface to BLAS routines SSYMV,
DSYMV, CHEMV, and ZHEMV. hemv
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 hermitian matrix.
The selection of the BLAS routine is done during compile-time, and is
determined by the type of values contained in type MatrixA
.
The type of values is obtained through the value_type
meta-function typename value_type<MatrixA>::type
. Table X below illustrates to
which specific routine this dispatching will take place.
Table 1.44. Dispatching of hemv.
Value type of MatrixA |
BLAS routine |
CBLAS routine |
CUBLAS routine |
---|---|---|---|
|
SSYMV |
cblas_ssymv |
cublasSsymv |
|
DSYMV |
cblas_dsymv |
Unavailable |
|
CHEMV |
cblas_chemv |
cublasChemv |
|
ZHEMV |
cblas_zhemv |
Unavailable |
The original routines SSYMV, DSYMV, CHEMV, and ZHEMV have ten arguments,
whereas hemv
requires
five arguments.
Defined in header boost/numeric/bindings/blas/level2/hemv.hpp
.
Parameters
The definition of term 1
The definition of term 2
The definition of term 3.
Definitions may contain paragraphs.
#include <boost/numeric/bindings/blas/level2/hemv.hpp> using namespace boost::numeric::bindings; blas::hemv( x, y, z );
this will output
[5] 0 1 2 3 4 5