14int main(
int argc,
char *argv[] )
18 cout <<
"Usage: " << argv[0] <<
" <filename>" << endl;
23 outs << argv[1] <<
".remapped";
24 ofstream
output(outs.str().c_str());
25 ifstream input(argv[1]);
27 int numrows, total_nnz;
31 input >> numrows >> total_nnz;
32 output << numrows <<
"\t" << one <<
"\t" << total_nnz << endl;
36 while ( (!input.eof()) && cnz < total_nnz)
38 input >> tempind >> tempnum;
39 output << tempind <<
"\t" << one <<
"\t" << tempnum << endl;