Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Sparse Matrix Operations

JBervel
Beginner
178 Views

Hello,

I am developing an application that works with sparse matrices.

I have seen mkl_?csradd(...) and mkl_?csrmultcsr(...). These functions just work with CSR format.

There are not more functions to operate with sparse matrices and return results as sparse matrices, but with different storage formats?

For example functions to add and multiply sparse matrices in COO format.


Thanks
0 Kudos
4 Replies
Gennady_F_Intel
Moderator
178 Views
There are not more functions to operate with sparse matrices and return results as sparse matrices, but with different storage formats?
>> not yet.
but as an example, you can use saymkl_dcsrcoo() for convertion a sparse matrix in the coordinate format to CSR, then usemkl_?csradd and then convert from CSR to COO again.
--Gennady
junuylia
Beginner
178 Views
I'm dealing with sparse symmetric matrices, and I think the packed format works pretty well and efficient. It could do add, multipy, inversion, and find eigenvalues. However, for sparse matrices, the current library isn't good enough for me.
Gennady_F_Intel
Moderator
178 Views
yesmaybe for this case.it is always acompromisebetween performance andmemory consumption andusability.
Danesh_Daroui
Beginner
178 Views
Actually, MKL acts OK in this case. How can you be sure that the product of two sparse matrices will be sparse? In general this is not true!

D.
Reply