8#include "../../trunk/CombBLAS/CombBLAS.h"
31 operator double()
const {
84template <
typename c,
typename t>
85inline std::basic_ostream<c,t>&
operator<<
86(std::basic_ostream<c,t>& lhs,
const Node& rhs) {
87 return lhs <<
"(node: id = " << rhs.id+1 <<
", dist = " << rhs.dist <<
88 ", parent = " << rhs.parent+1 <<
")";
109void apply(
void* invec,
void* inoutvec,
int* len, MPI_Datatype* datatype) {
113 for (
int i = 0; i < *len; i++) {
MPI::Datatype MPIType< Node >(void)
MPI::Datatype Node_MPI_datatype
void apply(void *invec, void *inoutvec, int *len, MPI_Datatype *datatype)
Node(double _dist, int _parent)
Node(int _id, double _dist, int _parent)
Node operator-(const Node &_node)
Node & operator=(const Node &_node)
Node & operator-=(const Node &_node)
static bool returnedSAID()
static Node multiply(const double &arg1, const Node &arg2)
static Node add(const Node &arg1, const Node &arg2)