Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

Question about mkl_sparse_d_export_csr

$
0
0

I am using mkl_sparse_d_export_csr to access the arrays rows_start and rows_end of the csr representation of my matrix. I have a question about memory allocation. Before call mkl_sparse_d_export_csr, I am allocating the 4 arrays for the matrix by using new. My programm crashes when I am trying to delete these arrays after using mkl_sparse_d_export_csr. I would like to know if the memory is allocated inside the function, as it looks like, or if it needs to be allocated before calling the function. I am assuming the answer is that it is allocated by the function and freed when I call mkl_sparse_destroy. Am I right?

Thanks,Marc


Viewing all articles
Browse latest Browse all 2652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>