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