Loading...
Searching...
No Matches
Go to the documentation of this file.
8#include "CombBLAS/CombBLAS.h"
26 cout <<
"Usage: ./ReadWriteMtx <InputMTX> <OutputBinary> <0|1> <permute>" <<
endl;
27 cout <<
"<InputMTX> can have reverse edges missing or with different values, but the reader will choose the edge with maximum value when that happens (common in dna/protein sequence search)" <<
endl;
28 cout <<
"<OutputBinary> is just the name of the output after such incompatibilities in MTX file are removed and all bidirectional edges now have the same value" <<
endl;
29 cout <<
"<0|1>: zero or one indexed (for inputs)" <<
endl;
30 cout <<
"<permute> randomly permute the matrix (default: 0 - meaning false)" <<
endl;
40 bool index =
static_cast<bool>(
atoi(
argv[3]));
44 cout <<
"Reading file " <<
Aname <<
" that is " << index <<
" indexed" <<
endl;
52 cout <<
"Randomly permuting" <<
endl;
63 perm.iota(
A.getnrow(), 0);
69 A.ParallelBinaryWrite(
Bname);
73 cout <<
"Now, reading the file back again in binary format..." <<
endl;
76 B.ReadDistribute (
Bname, 0,
false,
true);