1#include "CombBLAS/CombBLAS.h"
21template <
typename PARMAT>
60struct max2 :
public std::binary_function<VertexType, VertexType, VertexType>
68 if(
x.secondMaxProfit <
y.price)
ret.secondMaxProfit =
y.price;
73 if(
y.secondMaxProfit <
x.price)
ret.secondMaxProfit =
x.price;
120template <
class IT,
class NT>
180 cout <<
"ncol nrows nedges deg \n";
202 printf(
"ERROR: The MPI library does not have MPI_THREAD_SERIALIZED support\n");
223 if(
string(
argv[1]) ==
string(
"input"))
258 cout <<
"ER ******** \n";
266 cout <<
"g500 ******** \n";
274 cout <<
"ER ******** \n";
279 printf(
"The input type - %s - is not recognized.\n",
argv[2]);
void auction(PSpMat_s32p64 &A, FullyDistVec< int64_t, int64_t > &mateRow2Col, FullyDistVec< int64_t, int64_t > &mateCol2Row)
SpParMat< int64_t, bool, SpDCCols< int64_t, bool > > PSpMat_Bool
SpParMat< int64_t, bool, SpDCCols< int32_t, bool > > PSpMat_s32p64
bool isMaximalmatching(PSpMat_Int64 &A, FullyDistVec< IT, NT > &mateRow2Col, FullyDistVec< IT, NT > &mateCol2Row, FullyDistSpVec< int64_t, int64_t > unmatchedRow, FullyDistSpVec< int64_t, int64_t > unmatchedCol)
SpParMat< int64_t, float, SpDCCols< int64_t, float > > PSpMat_float
SpParMat< int64_t, int64_t, SpDCCols< int64_t, int64_t > > PSpMat_Int64
void maximumMatching(PSpMat_s32p64 &Aeff, FullyDistVec< int64_t, int64_t > &mateRow2Col, FullyDistVec< int64_t, int64_t > &mateCol2Row)
void removeIsolated(PSpMat_Bool &A)
void GenGraph500Data(double initiator[4], int log_numverts, int edgefactor, bool scramble=false, bool packed=false)
static void Print(const std::string &s)
void Symmetricize(PARMAT &A)
static VertexType multiply(const double &arg1, const VertexType &arg2)
static bool returnedSAID()
static VertexType add(const VertexType &arg1, const VertexType &arg2)
static void axpy(const double a, const VertexType &x, VertexType &y)
friend bool operator<(const VertexType &vtx1, const VertexType &vtx2)
VertexType(int64_t oi=-1, double p=0, double smp=-9999999)
friend ostream & operator<<(ostream &os, const VertexType &vertex)
const VertexType operator()(const VertexType &x, const VertexType &y) const