Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Kronecker product

Grigoras_V_
Beginner
2,223 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
2,223 Views

Hi Grigoras,

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

--Vipin

0 Kudos
Grigoras_V_
Beginner
2,223 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.

0 Kudos
VipinKumar_E_Intel
2,223 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

0 Kudos
Royi
Novice
2,223 Views

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

0 Kudos
Reply