Fork me on GitHub
 All Classes Files Functions Variables Groups Pages
matrix_market.cu
#include <cusp/array2d.h>
#include <cusp/print.h>
int main(void)
{
// create a simple example
A(0,0) = 10; A(0,1) = 0; A(0,2) = 20; A(0,3) = 0;
A(1,0) = 0; A(1,1) = 30; A(1,2) = 0; A(1,3) = 40;
A(2,0) = 50; A(2,1) = 60; A(2,2) = 70; A(2,3) = 80;
// save A to disk in MatrixMarket format
// load A from disk into a coo_matrix
// print B
return 0;
}