Macros
metis/libmetis/macros.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AND(a, b)   ((a) < 0 ? ((-(a))&(b)) : ((a)&(b)))
 
#define BNDDelete(nbnd, bndind, bndptr, vtx)   ListDelete(nbnd, bndind, bndptr, vtx)
 
#define BNDInsert(nbnd, bndind, bndptr, vtx)   ListInsert(nbnd, bndind, bndptr, vtx)
 
#define GETOPTION(options, idx, defval)   ((options) == NULL || (options)[idx] == -1 ? defval : (options)[idx])
 
#define HASHFCT(key, size)   ((key)%(size))
 
#define I2RUBFACTOR(ufactor)   (1.0+0.001*(ufactor))
 
#define ListDelete(n, lind, lptr, i)
 
#define ListInsert(n, lind, lptr, i)
 
#define OR(a, b)   ((a) < 0 ? -((-(a))|(b)) : ((a)|(b)))
 
#define SelectSafeTargetSubdomains(myrinfo, mynbrs, nads, adids, maxndoms, safetos, vtmp)
 
#define SWAP   gk_SWAP
 
#define UpdateAdjacentVertexInfoAndBND(ctrl, vid, adjlen, me, from, to, myrinfo, ewgt, nbnd, bndptr, bndind, bndtype)
 
#define UpdateMovedVertexInfoAndBND(i, from, k, to, myrinfo, mynbrs, where, nbnd, bndptr, bndind, bndtype)
 
#define UpdateQueueInfo(queue, vstatus, vid, me, from, to, myrinfo, oldnnbrs, nupd, updptr, updind, bndtype)
 
#define WCOREPOP   wspacepop(ctrl)
 
#define WCOREPUSH   wspacepush(ctrl)
 
#define XOR(a, b)   ((a) < 0 ? -((-(a))^(b)) : ((a)^(b)))
 

Macro Definition Documentation

#define AND (   a,
  b 
)    ((a) < 0 ? ((-(a))&(b)) : ((a)&(b)))

Definition at line 21 of file metis/libmetis/macros.h.

#define BNDDelete (   nbnd,
  bndind,
  bndptr,
  vtx 
)    ListDelete(nbnd, bndind, bndptr, vtx)

Definition at line 68 of file metis/libmetis/macros.h.

#define BNDInsert (   nbnd,
  bndind,
  bndptr,
  vtx 
)    ListInsert(nbnd, bndind, bndptr, vtx)

Definition at line 65 of file metis/libmetis/macros.h.

#define GETOPTION (   options,
  idx,
  defval 
)    ((options) == NULL || (options)[idx] == -1 ? defval : (options)[idx])

Definition at line 31 of file metis/libmetis/macros.h.

#define HASHFCT (   key,
  size 
)    ((key)%(size))

Definition at line 27 of file metis/libmetis/macros.h.

#define I2RUBFACTOR (   ufactor)    (1.0+0.001*(ufactor))

Definition at line 35 of file metis/libmetis/macros.h.

#define ListDelete (   n,
  lind,
  lptr,
  i 
)
Value:
do { \
ASSERT(lptr[i] != -1); \
lind[lptr[i]] = lind[--(n)]; \
lptr[lind[n]] = lptr[i]; \
lptr[i] = -1; \
} while(0)
int n
#define ASSERT(expression)
Definition: ccolamd.c:872

Definition at line 53 of file metis/libmetis/macros.h.

#define ListInsert (   n,
  lind,
  lptr,
  i 
)
Value:
do { \
ASSERT(lptr[i] == -1); \
lind[n] = i; \
lptr[i] = (n)++;\
} while(0)
int n
#define ASSERT(expression)
Definition: ccolamd.c:872

Definition at line 46 of file metis/libmetis/macros.h.

#define OR (   a,
  b 
)    ((a) < 0 ? -((-(a))|(b)) : ((a)|(b)))

Definition at line 22 of file metis/libmetis/macros.h.

#define SelectSafeTargetSubdomains (   myrinfo,
  mynbrs,
  nads,
  adids,
  maxndoms,
  safetos,
  vtmp 
)

This macro determines the set of subdomains that a vertex can move to without increasins the maxndoms.

Definition at line 223 of file metis/libmetis/macros.h.

#define SWAP   gk_SWAP

Definition at line 28 of file metis/libmetis/macros.h.

#define UpdateAdjacentVertexInfoAndBND (   ctrl,
  vid,
  adjlen,
  me,
  from,
  to,
  myrinfo,
  ewgt,
  nbnd,
  bndptr,
  bndind,
  bndtype 
)

Definition at line 103 of file metis/libmetis/macros.h.

#define UpdateMovedVertexInfoAndBND (   i,
  from,
  k,
  to,
  myrinfo,
  mynbrs,
  where,
  nbnd,
  bndptr,
  bndind,
  bndtype 
)
Value:
do { \
where[i] = to; \
myrinfo->ed += myrinfo->id-mynbrs[k].ed; \
SWAP(myrinfo->id, mynbrs[k].ed, j); \
if (mynbrs[k].ed == 0) \
mynbrs[k] = mynbrs[--myrinfo->nnbrs]; \
else \
mynbrs[k].pid = from; \
\
/* Update the boundary information. Both deletion and addition is \
allowed as this routine can be used for moving arbitrary nodes. */ \
if (bndtype == BNDTYPE_REFINE) { \
if (bndptr[i] != -1 && myrinfo->ed - myrinfo->id < 0) \
BNDDelete(nbnd, bndind, bndptr, i); \
if (bndptr[i] == -1 && myrinfo->ed - myrinfo->id >= 0) \
BNDInsert(nbnd, bndind, bndptr, i); \
} \
if (bndptr[i] != -1 && myrinfo->ed <= 0) \
BNDDelete(nbnd, bndind, bndptr, i); \
if (bndptr[i] == -1 && myrinfo->ed > 0) \
BNDInsert(nbnd, bndind, bndptr, i); \
} \
} while(0)
#define BNDDelete(nbnd, bndind, bndptr, vtx)
if((m *x).isApprox(y))
#define BNDInsert(nbnd, bndind, bndptr, vtx)
#define BNDTYPE_REFINE
Definition: libmetis/defs.h:30
idx_t idx_t idx_t idx_t * where
#define SWAP
std::ptrdiff_t j

Definition at line 75 of file metis/libmetis/macros.h.

#define UpdateQueueInfo (   queue,
  vstatus,
  vid,
  me,
  from,
  to,
  myrinfo,
  oldnnbrs,
  nupd,
  updptr,
  updind,
  bndtype 
)

Definition at line 173 of file metis/libmetis/macros.h.

#define WCOREPOP   wspacepop(ctrl)

Definition at line 39 of file metis/libmetis/macros.h.

#define WCOREPUSH   wspacepush(ctrl)

Definition at line 38 of file metis/libmetis/macros.h.

#define XOR (   a,
  b 
)    ((a) < 0 ? -((-(a))^(b)) : ((a)^(b)))

Definition at line 23 of file metis/libmetis/macros.h.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:31