Visible to Intel only — GUID: GUID-9E3880E2-E7FE-4636-B312-6A67551584CB
Visible to Intel only — GUID: GUID-9E3880E2-E7FE-4636-B312-6A67551584CB
mkl_sparse_?_syprd
Computes the symmetric triple product of a sparse matrix and a dense matrix and stores the result as a dense matrix.
Syntax
stat = mkl_sparse_s_syprd (operation, A, B, denselayoutB, ldb, alpha, beta, C, denselayoutC, ldc)
stat = mkl_sparse_d_syprd (operation, A, B, denselayoutB, ldb, alpha, beta, C, denselayoutC, ldc)
stat = mkl_sparse_c_syprd (operation, A, B, denselayoutB, ldb, alpha, beta, C, denselayoutC, ldc)
stat = mkl_sparse_z_syprd (operation, A, B, denselayoutB, ldb, alpha, beta, C, denselayoutC, ldc)
Include Files
- mkl_spblas.f90
Description
The mkl_sparse_?_syprd routine performs a multiplication of three sparse matrices that results in a symmetric or Hermitian matrix, C.
C:=alpha*A*B*op(A) + beta*Cor
C:=alpha*op(A)*B*A + beta*Cdepending on the matrix modifier operation. Here A is a sparse matrix, B and C are dense and symmetric (or Hermitian) matrices.
op is the transpose (real precision) or conjugate transpose (complex precision) operator.
This routine is not supported for sparse matrices in COO or CSC formats. It supports only CSR and BSR formats. In addition, this routine supports only the sorted CSR and sorted BSR formats for the input matrix. If the data is unsorted, call the mkl_sparse_order routine before either mkl_sparse_sypr or mkl_sparse_?_syprd.
Input Parameters
operation |
C_INT. Specifies operation on the input sparse matrix.
|
||||||||
A |
SPARSE_MATRIX_T. Handle which contains the sparse matrix A. |
||||||||
B |
SPARSE_MATRIX_T. Input dense matrix. Only the upper triangular part of the matrix is used for computation. |
||||||||
denselayoutB |
C_INT. Structure that describes the storage scheme for the dense matrix.
|
||||||||
ldb |
SPARSE_MATRIX_T. Leading dimension of matrix B. |
||||||||
alpha |
Scalar parameter.
|
||||||||
beta |
Scalar parameter.
NOTE:
Since the upper triangular part of matrix C is the only portion that is processed, set real values of alpha and beta in the complex case to obtain the Hermitian matrix. |
||||||||
denselayoutC |
C_INT. Structure that describes the storage scheme for the dense matrix.
|
||||||||
ldc |
C_INT. Leading dimension of matrix C. |
Output Parameters
C |
SPARSE_MATRIX_T. Handle which contains the resulting dense matrix. Only the upper-triangular part of the matrix is computed. |
||||||||||||||
stat |
INTEGER Value indicating whether the operation was successful, or the reason why it failed.
|