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

Sparse Matrix Manipulation Routines, equivalent of old mkl_?dnscsr

HendrikSchrau
Débutant
806 Visites

Hello Everyone,

I am new to this forum and I hope this is the correct place for this question. I am using the Intel MKL Fortran Compiler. For testing purposes I'd like to get the dense representation of a matrix which was in the CSR format before. The routine mkl_?dnscsr seems to be deprecated with the note of using the Matrix Manipulation Routines (https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-fortran/2024-0/matrix-manipulation-routines.html)

I searched for an equivalent of getting the dense representation but couldn't find one. Maybe I am just overlooking but I would appreciate any help.

 

Bests,

 

Hendrik

0 Compliments
2 Réponses
noffermans
Employé
794 Visites

Hi Hendrik,

You are not overlooking anything. We do not have a replacement routine for mkl_?dnscsr as of now in the Matrix Manipulation Routines. We are aware that this statement in the documentation is incorrect and it will be modified soon. 
If you need to convert between sparse and dense matrices, you may decide to either write your own converter (see examples/c/sparse_blas/source/sparse_converters.c example for hints) or continue using mkl_?dnscsr until a replacement is provided (the routine will not be removed until there is a replacement).

I hope this helps and apologies for the confusion.

Best.
Nicolas

Edit: the sparse_converters example is in C, as we do not have a Fortran equivalent. But the logic of how it could be done in Fortran is the same.

0 Compliments
HendrikSchrau
Débutant
775 Visites

Hi Nicolas,

 

Thanks a lot for your fast reply. I will just continue to use the old one then.

 

Best

 

Hendrik

0 Compliments
Répondre