I want to transpose a sparse matrix. I used the mkl_sparse_convert_csr function as
mkl_sparse_convert_csr(csrA,SPARSE_OPERATION_TRANSPOSE,&csrB);
(1) Immediately after this step, I would like to destroy csrA. I assumed csrB will have its own memory space. However, my program will crash if I access csrB. It seems csrB share the memory with csrA. It works fine if I destroy csrA after all steps. Can someone confirm this?
(2) I'm also wondering if this is the best way to transpose a sparse matrix. The mkl_?csrcsc is depreciated.
Thanks
Jiaen
TCE Open Date:
Thursday, January 9, 2020 - 18:45