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

Sparse Matrix Calculation Examples

ssylee
Beginner
430 Views
I am fully aware in the examples\spblas directory, there is a few c example files of using the Sparse BLAS routines. However, I have trouble understanding what the examples are doing. Would I need to familiarize myself with how sparse matrices are stored? If I am trying to perform a simple sparse matrix calculation of K and f, with K being a m x m matrix, and f being a m x 1 matrix, both of which are sparse, which example and documentation would you recommend to be the best starting point?

Thanks in advance.
0 Kudos
1 Reply
Gennady_F_Intel
Moderator
430 Views
Hi,
you can get the answer about how sparce matrix are stored from the name of the files:
For example
cspblas_dcsr.c - where "csr" means that matrices represented in the compressed sparse row storage scheme.
cspblas_sbsr.c the block compressed sparse row storage scheme
cspblas_scoo.c the coordinate storage scheme.
cspblas_scsc.c the compressed sparse column storage scheme
and etc

All info about Sparse Matrix Storage Formats you can find into MKL Reference Manual ( see in the Appendix A )".
--Gennady

0 Kudos
Reply