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

mkl_dcsradd doubt

JBervel
Beginner
348 Views
Hi,

I am working with the function


mkl_dcsradd(...)

When I pass two matrices like

1 1 1 1 -1 1
0 0 0 0 0 0
0 0 0 0 0 0

the returnedmatrix is:

values:2 0 2
columns: 1 2 3
rowIndex: 1 4 4 4

There is any way to automatically eliminate the zero values returned by the function?

values: 2 2
columns: 1 3
rowIndex: 1 3 33

Thanks

0 Kudos
3 Replies
Konstantin_A_Intel
348 Views
Hi,
MKL doesn't have such functionality.
Do you feel this feature (like eliminating zero entries from sparse formats) is worth including in some of the next MKL releases?
Regards,
Konstantin
0 Kudos
JBervel
Beginner
348 Views

Yes, it would be good for my work.

Thanks for the response.

0 Kudos
Gennady_F_Intel
Moderator
348 Views
but You have to take into account that this functionality would negatively affects on the performance of this routine.
--Gennady
0 Kudos
Reply