There are two prototypes of gbmv
available, please see below.
gbmv( const Scalar >, const MatrixA& a, const VectorX& x, const Scalar >, VectorY& y );
gbmv( const Scalar alpha, const MatrixA& a, const VectorX& x, const Scalar beta, VectorY& y );
gbmv
(short for generic,
banded, matrix-vector operation) provides a C++ interface to BLAS routines
SGBMV, DGBMV, CGBMV, and ZGBMV. gbmv
performs one of the matrix-vector operations
y := alpha*A*x + beta*y, or y := alpha*A'*x + beta*y, or
y := alpha*conjg( A' )*x + beta*y,
where alpha and beta are scalars, x and y are vectors and A is an m by n band matrix, with kl sub-diagonals and ku super-diagonals.
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.32. Dispatching of gbmv.
Value type of MatrixA |
BLAS routine |
CBLAS routine |
CUBLAS routine |
---|---|---|---|
|
SGBMV |
cblas_sgbmv |
cublasSgbmv |
|
DGBMV |
cblas_dgbmv |
Unavailable |
|
CGBMV |
cblas_cgbmv |
cublasCgbmv |
|
ZGBMV |
cblas_zgbmv |
Unavailable |
The original routines SGBMV, DGBMV, CGBMV, and ZGBMV have thirteen arguments,
whereas gbmv
requires
five arguments.
Defined in header boost/numeric/bindings/blas/level2/gbmv.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/gbmv.hpp> using namespace boost::numeric::bindings; blas::gbmv( x, y, z );
this will output
[5] 0 1 2 3 4 5