Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
6981 Discussions

multiplication of a diagonal matrix with a general matrix

Customer__Intel4
Beginner
711 Views
Is there a routine in MKL which computes the multiplication of a diagonal matrix (where only diagonal elements are stored) with a general matrix?
0 Kudos
1 Reply
Ying_H_Intel
Employee
711 Views
Hi

Which format you store the diagonal matrix? If take the diagonal matrix as sparse matrix.
'
Then you may do searchfrom mkl user manual,
http://software.intel.com/sites/products/documentation/hpc/mkl/mklman/index.htm

There are some routines to support sparsematrix* dense matrix

like

mkl_?csrmm

Computes matrix - matrix product of a sparse matrix stored in the CSR format.

mkl_?diamm

Computes matrix-matrix product of a sparse matrix stored in the diagonal formatwith one-based indexing.
You maysee if theyare ok.

Regards,
Ying H.

0 Kudos
Reply