Hi, has anyone encounterd the situation I met? All I did was try to convert a sparse matrix in CSC format to CSR format.
At the foremost , I use mkl_sparse_z_creat_csc to create a matrix in CSC format, and the stat is '0', which shows that the creation is successful, and I use mkl_sparse_convert_csr to get matrix in CSR format. I`ve tried this function using a small matrix and surely it works, however, when I use it to convert a big matrix, the compiler suddenly occur to prompt me that there exists an Access Conflict when running the convert function, and I have no idea why this hint comes to me, so is there anyone knows why?
Hi, after checking my code, I find an error in assembling CSC matrix, and I`ve solved this problem, thx a lot.
By the way, if I try to compute the multiplication of two CSR matrix A and B with sparse_index_base_one both using mak_sparse_spmm to get another sparse matrix C, when I use mkl_sparse_?_export_csr, I find that the sparse_index_base is zero instead of one, is it correct or the function return the default internal data type rather than the input value?
Gennady F. (Intel) wrote:
This looks like a problem. the output array should be indexed like the input arrays. Could you give us the example of this case?
This case has appeared many times during my compute, and here is a easier way to actualize it:
1. Using mkl_sparse_?_create_csr to create two sparse matrix A and B with sparse_index_base_one
2.Using mkl_sparse_?_add to compute the sum of the two matrix and store the result as a sparse matrix C, or you can use mkl_sparse_spmm to compute the product of he two matrix
3. Export sparse matrix C and you will find out that the sparse_index_base is zero.