This commit is contained in:
2025-03-12 12:37:19 +03:00
committed by Dudarenko
parent 0c9f0664fd
commit d4fb323f86
428 changed files with 0 additions and 0 deletions

View 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);
}