PrevUpHomeNext
hemm
Prototype

There are two prototypes of hemm available, please see below.

hemm( const Side side, const Scalar >, const MatrixA& a,
        const MatrixB& b, const Scalar >, MatrixC& c );

hemm( const Side side, const Scalar alpha, const MatrixA& a,
        const MatrixB& b, const Scalar beta, MatrixC& c );

Description

hemm (short for hermitian matrix-matrix operation) provides a C++ interface to BLAS routines SSYMM, DSYMM, CHEMM, and ZHEMM. hemm performs one of the matrix-matrix operations

C := alpha*A*B + beta*C,

or

C := alpha*B*A + beta*C,

where alpha and beta are scalars, A is an hermitian matrix and B and C are m by n matrices.

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.84. Dispatching of hemm.

Value type of MatrixA

BLAS routine

CBLAS routine

CUBLAS routine

float

SSYMM

cblas_ssymm

cublasSsymm

double

DSYMM

cblas_dsymm

cublasDsymm

complex<float>

CHEMM

cblas_chemm

cublasChemm

complex<double>

ZHEMM

cblas_zhemm

Unavailable


The original routines SSYMM, DSYMM, CHEMM, and ZHEMM have twelve arguments, whereas hemm requires six arguments.

Table 1.85. Deduction of arguments of hemm.


Definition

Defined in header boost/numeric/bindings/blas/level3/hemm.hpp.

Parameters or Requirements on Types

Parameters

MatrixA

The definition of term 1

MatrixB

The definition of term 2

MatrixC

The definition of term 3.

Definitions may contain paragraphs.

Complexity
Example

#include <boost/numeric/bindings/blas/level3/hemm.hpp>
using namespace boost::numeric::bindings;

blas::hemm( x, y, z );

this will output

[5] 0 1 2 3 4 5

Notes
See Also

PrevUpHomeNext