moved
This commit is contained in:
28
Sapfor/_src/Distribution/Distribution.h
Normal file
28
Sapfor/_src/Distribution/Distribution.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstdint>
|
||||
|
||||
#include "GraphCSR.h"
|
||||
#include "Arrays.h"
|
||||
#include "Array.h"
|
||||
|
||||
namespace DIST = Distribution;
|
||||
namespace Distribution
|
||||
{
|
||||
template<typename attrType>
|
||||
attrType shiftByDiffInArc(const attrType& arcAttr);
|
||||
|
||||
template<typename attrType>
|
||||
attrType inverseArcByShifts(const attrType& arcAttr);
|
||||
|
||||
template<typename vType, typename wType, typename attrType>
|
||||
int AddArrayAccess(GraphCSR<vType, wType, attrType> &G, Arrays<vType> &allArrays,
|
||||
Array *arr1, Array *arr2, std::pair<int, int> arc, wType arcWeight,
|
||||
const attrType &arcAttr, const uint8_t linkType);
|
||||
|
||||
template<typename vType, typename wType, typename attrType>
|
||||
void createOptimalDistribution(GraphCSR<vType, wType, attrType> &G, GraphCSR<vType, wType, attrType> &reducedG,
|
||||
const Arrays<vType> &allArrays, const uint64_t regionNum, bool onlyGraph);
|
||||
}
|
||||
Reference in New Issue
Block a user