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

mkl_sparse_z_export_csr of Inspector-executor Sparse BLAS return bizarre results.

$
0
0

Dear MKL experts,

       I'm testing the function,mkl_sparse_z_export_csr, in Inspector-executor Sparse BLAS, to convert COO format into CSR format and output the CSR format. The function returns BIZARRE results as shown in the below. I guess I did something wrong. I attach the simple code at the end. Please tell what the correct way to do it.

Dan

!   Sparse representation of the matrix A
!
!                 |   1       -1      0   -3     0   |
!                 |  -2        5      0    0     0   |
!   A    =     |   0        0      4    6     4    |,
!                 |  -4        0      2    7     0   |
!                 |   0        8      0    0    -5   |
!

   info = mkl_sparse_z_export_csr (csrA, i, nrow, ncol, rows_start,rows_end,col_indx,csrA_value)

 OUTPUT DATA FOR [A] in CSR Format =
 rows_start(1:M) =      8546432  1919251285  1631870067  1883331694  1952531568
 rows_end(1:M)  =      8546436  1952531568  1867275361  1550606691  1886217556
 col_indx(1:NNZ) =     8546688  1279350084  1313817944  1398079538  1095651909  1144866125
                                 1426091617  1347568979  1229344594  1128088908  1934974010  1551069797     7233860
 csr_AB_value(1:NNZ) =
 (2.099310184342793E+021,1.887537090390452E+219)
 (8.857835453724769E+247,8.490117977552768E+175)
 (1.178852010317225E-307,2.225055204183881E+252)
 (5.817520101125294E+252,1.035480486908856E+243)
 (2.646398786088117E+199,6.103525143045638E+257)
 (1.298808940059573E+219,1.565465600591419E-076)
 (3.015794287991875E+161,2.305365297438563E+108)
 (1.665757500898629E-071,9.805903047556869E-072)
 (1.107082334375070E+074,4.363619063791335E+242)
 (1.323192987846278E+199,1.674261708694803E-047)
 (1.099368561560521E+248,5.829277640098750E+257)
 (4.893813689845159E+199,3.173709719932153E+016)
 (2.410805593608415E+098,2.868330566549112E+093)
 ---------------------------------------------------

 

 


Viewing all articles
Browse latest Browse all 2652

Trending Articles



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