mkl_?bsrgemv
mkl_?bsrgemv
Computes matrix - vector product of a sparse general matrix stored in the BSR format (3-array variation) with one-based indexing (deprecated).
Syntax
void
mkl_sbsrgemv
(
const
char
*transa
,
const
MKL_INT
*m
,
const
MKL_INT
*lb
,
const
float
*a
,
const
MKL_INT
*ia
,
const
MKL_INT
*ja
,
const
float
*x
,
float
*y
);
void
mkl_dbsrgemv
(
const
char
*transa
,
const
MKL_INT
*m
,
const
MKL_INT
*lb
,
const
double
*a
,
const
MKL_INT
*ia
,
const
MKL_INT
*ja
,
const
double
*x
,
double
*y
);
void
mkl_cbsrgemv
(
const
char
*transa
,
const
MKL_INT
*m
,
const
MKL_INT
*lb
,
const
MKL_Complex8
*a
,
const
MKL_INT
*ia
,
const
MKL_INT
*ja
,
const
MKL_Complex8
*x
,
MKL_Complex8
*y
);
void
mkl_zbsrgemv
(
const
char
*transa
,
const
MKL_INT
*m
,
const
MKL_INT
*lb
,
const
MKL_Complex16
*a
,
const
MKL_INT
*ia
,
const
MKL_INT
*ja
,
const
MKL_Complex16
*x
,
MKL_Complex16
*y
);
Include Files
- mkl.h
Description
This routine is deprecated. Use mkl_sparse_?_mvfrom the Inspector-executor Sparse BLAS interface instead.
Intel® oneAPI Math Kernel Library
The
mkl_?bsrgemv
routine performs a matrix-vector operation defined as y := A*x
or
y := AT*x,
where:
x
and y
are vectors, A
is an m
-by-m
block sparse square matrix in the BSR format (3-array variation), A
T
is the transpose of A
.This routine supports only one-based indexing of the input arrays.
Input Parameters
- transa
- Specifies the operation.Ifortransa='N''n', then the matrix-vector product is computed asy:=A*xIfortransa='T''t'or'C'or'c', then the matrix-vector product is computed as,y:=AT*x
- m
- Number of block rows of the matrixA.
- lb
- Size of the block in the matrixA.
- a
- Array containing elements of non-zero blocks of the matrixA. Its length is equal to the number of non-zero blocks in the matrixAmultiplied by. Refer tolb*lbvaluesarray description in BSR Format for more details.
- ia
- Array of length(, containing indices of block in the arraym+ 1)a, such thatis the index in the arrayia[i] -ia[0]aof the first non-zero element from the rowi. The value of the last elementis equal to the number of non-zero blocks. Refer toia[m] -ia[0]rowIndexarray description in BSR Format for more details.
- ja
- Array containing the column indicesplus onefor each non-zero block in the matrixA.Its length is equal to the number of non-zero blocks of the matrixA. Refer tocolumnsarray description in BSR Format for more details.
- x
- Array, size(.m*lb)On entry, the arrayxmust contain the vectorx.
Output Parameters
- y
- Array, size at least(.m*lb)On exit, the arrayymust contain the vectory.