ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
mkwayfmh.c File Reference
#include "metis.h"
Include dependency graph for mkwayfmh.c:

Go to the source code of this file.

Functions

void MCRandom_KWayEdgeRefineHorizontal (CtrlType *ctrl, GraphType *graph, int nparts, float *orgubvec, int npasses)
 
void MCGreedy_KWayEdgeBalanceHorizontal (CtrlType *ctrl, GraphType *graph, int nparts, float *ubvec, int npasses)
 
int AreAllHVwgtsBelow (int ncon, float alpha, float *vwgt1, float beta, float *vwgt2, float *limit)
 
int AreAllHVwgtsAbove (int ncon, float alpha, float *vwgt1, float beta, float *vwgt2, float *limit)
 
void ComputeHKWayLoadImbalance (int ncon, int nparts, float *npwgts, float *lbvec)
 
int MocIsHBalanced (int ncon, int nparts, float *npwgts, float *ubvec)
 
int IsHBalanceBetterFT (int ncon, int nparts, float *pfrom, float *pto, float *vwgt, float *ubvec)
 
int IsHBalanceBetterTT (int ncon, int nparts, float *pt1, float *pt2, float *vwgt, float *ubvec)
 

Function Documentation

◆ AreAllHVwgtsAbove()

int AreAllHVwgtsAbove ( int  ncon,
float  alpha,
float *  vwgt1,
float  beta,
float *  vwgt2,
float *  limit 
)

Definition at line 529 of file mkwayfmh.c.

Referenced by MCGreedy_KWayEdgeBalanceHorizontal().

◆ AreAllHVwgtsBelow()

int AreAllHVwgtsBelow ( int  ncon,
float  alpha,
float *  vwgt1,
float  beta,
float *  vwgt2,
float *  limit 
)

◆ ComputeHKWayLoadImbalance()

void ComputeHKWayLoadImbalance ( int  ncon,
int  nparts,
float *  npwgts,
float *  lbvec 
)

Definition at line 545 of file mkwayfmh.c.

References max().

Referenced by MCGreedy_KWayEdgeBalanceHorizontal(), and MCRandom_KWayEdgeRefineHorizontal().

◆ IsHBalanceBetterFT()

int IsHBalanceBetterFT ( int  ncon,
int  nparts,
float *  pfrom,
float *  pto,
float *  vwgt,
float *  ubvec 
)

Definition at line 593 of file mkwayfmh.c.

References amax.

Referenced by MCGreedy_KWayEdgeBalanceHorizontal(), and MCRandom_KWayEdgeRefineHorizontal().

◆ IsHBalanceBetterTT()

int IsHBalanceBetterTT ( int  ncon,
int  nparts,
float *  pt1,
float *  pt2,
float *  vwgt,
float *  ubvec 
)

◆ MCGreedy_KWayEdgeBalanceHorizontal()

◆ MCRandom_KWayEdgeRefineHorizontal()

◆ MocIsHBalanced()

int MocIsHBalanced ( int  ncon,
int  nparts,
float *  npwgts,
float *  ubvec 
)

Definition at line 565 of file mkwayfmh.c.

References max().

Referenced by MCGreedy_KWayEdgeBalanceHorizontal().