I want to transpose a sparse matrix. I used the mkl_sparse_convert_csr function as
(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.