Finding CRS format of matrix in Mex
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I am using mex bridge to perform some operations sparse matrices from matlab.One of the operations requires me to convert matrix from CSC to CRS format. I was able to get values and col_indices arrays. However, I am not able to understand the exact method by which I can extract row_pointers array of a given matrix in CSC format.
Any help/suggestions will be appreciated.
Thanks in advance.
Cheers.
0 件のコメント
回答 (2 件)
James Tursa
2012 年 7 月 8 日
Can't you just transpose it within MATLAB, and then treat the resulting row indexes as column indexes and column "pointers" as row "pointers" in the CRS format?
0 件のコメント
Abhishek
2012 年 7 月 8 日
3 件のコメント
James Tursa
2012 年 7 月 8 日
You can use mexCallMATLAB with your MATLAB variable as the input and call the "transpose" function.
参考
カテゴリ
Help Center および File Exchange で GPU Computing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!