Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Kronecker product

Grigoras_V_
Beginner
344 Views

Hello.

I am new to Intel MKL and I am sorry if my question seems out of line.

Is there any function or subroutine in MKL that computes the kronecker product of two matrix (like kron in matlab).

Also is there a function in MKL that returns the identity matrix of a specified dimension (like eye(n) in matlab).

Thank you!

0 Kudos
4 Replies
VipinKumar_E_Intel
344 Views

Hi Grigoras,

    The equivalent BLAS routine for the Kronecker product of two matrices would be the GEMM.

--Vipin

Grigoras_V_
Beginner
344 Views

I am sorry, but I can't figure out how to call GEMM to get the Kronecker product.

Could you please give me an example?

I need to compute B=kron(I,A) where I is the identity matrix and A is some 3x3 matrix. 

Thank you.

VipinKumar_E_Intel
344 Views

Sorry Gregorias, a correction to the above. GEMM may produce the same results in some partial cases only, and not in general.  We do not have a specific kronecker equivalent in MKL.

--Vipin

Royi
Novice
344 Views

Could something which is equivalent to MATLAB eye() and speye() be added with Kron (With Sparse matrices support).

Reply