开发者

Converting from COO to Compressed sparse matrix

I wanted CSR files preferably from matrix market for my OpenCL library, I searched a lot for CSR generators in C but didn't get any. I find matrix market formats comfortable since they have defined the functions for read and write. I'm also curious how CUSP library in CUDA C is able to read COO matrix from an .mtx file and can convert it to CSR format. Thanks in开发者_StackOverflow advance


You can see the code for reading matrices in cusp::io.

Before you go reinventing the wheel, you might want to take a look at ViennaCL, which already include OpenCL CSR matrix types, an spMV implementation, and a number of iterative solvers built on that spMV implementation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜