11 Int Ng, nprow, npcol, myrow, mycol;
13 Mgridinfo(ctxt, Ng, nprow, npcol, myrow, mycol);
14 if (rdest == -1) rdest = cdest = 0;
24 cA[i] = (
Int) (cdest + dist[i]) % npcol;
36 rA[i] = (
Int) (rdest + dist[i]) % nprow;
45 dest =
Mvkpnum(ctxt, rdest, cdest);
50 k = (
Int) (dest + dist[i]) % Ng;
void BI_TransDist(BLACSCONTEXT *ctxt, char scope, Int m, Int n, Int *rA, Int *cA, Int ldrc, BI_DistType *dist, Int rdest, Int cdest)
#define Mgridinfo(ctxt, Ng0, nprow0, npcol0, myrow0, mycol0)
#define Mvkpnum(ctxt, prow, pcol)
#define Mvpcoord(ctxt, node, prow, pcol)