| 1 |
/*! |
| 2 |
\file |
| 3 |
\brief Data structures and prototypes for GKlib integration |
| 4 |
|
| 5 |
\date Started 12/23/2008 |
| 6 |
\author George |
| 7 |
\version\verbatim $Id: gklib_defs.h 10395 2011-06-23 23:28:06Z karypis $ \endverbatim |
| 8 |
*/ |
| 9 |
|
| 10 |
#ifndef _LIBMETIS_GKLIB_H_ |
| 11 |
#define _LIBMETIS_GKLIB_H_ |
| 12 |
|
| 13 |
/************************************************************************* |
| 14 |
* Define various data structure using GKlib's templates. |
| 15 |
**************************************************************************/ |
| 16 |
GK_MKKEYVALUE_T(ikv_t, idx_t, idx_t) |
| 17 |
GK_MKKEYVALUE_T(rkv_t, real_t, idx_t) |
| 18 |
GK_MKPQUEUE_T(rpq_t, rkv_t) |
| 19 |
|
| 20 |
|
| 21 |
/* gklib.c */ |
| 22 |
GK_MKBLAS_PROTO(i, idx_t, idx_t) |
| 23 |
GK_MKALLOC_PROTO(i, idx_t) |
| 24 |
GK_MKALLOC_PROTO(r, real_t) |
| 25 |
GK_MKALLOC_PROTO(ikv, ikv_t) |
| 26 |
GK_MKALLOC_PROTO(rkv, rkv_t) |
| 27 |
GK_MKPQUEUE_PROTO(rpq, rpq_t, real_t, idx_t) |
| 28 |
GK_MKRANDOM_PROTO(i, idx_t, idx_t) |
| 29 |
void isortd(size_t n, idx_t *base); |
| 30 |
void ikvsorti(size_t n, ikv_t *base); |
| 31 |
|
| 32 |
|
| 33 |
#endif |