gklib_defs.h
Go to the documentation of this file.
1 
10 #ifndef _LIBMETIS_GKLIB_H_
11 #define _LIBMETIS_GKLIB_H_
12 
13 #include "gklib_rename.h"
14 
15 /*************************************************************************/
17 /*************************************************************************/
18 typedef struct {
19  idx_t u, v, w;
20 } uvw_t;
21 
22 /*************************************************************************
23 * Define various data structure using GKlib's templates.
24 **************************************************************************/
27 GK_MKPQUEUE_T(ipq_t, ikv_t)
28 GK_MKPQUEUE_T(rpq_t, rkv_t)
29 
30 
31 /* gklib.c */
36 GK_MKALLOC_PROTO(ikv, ikv_t)
37 GK_MKALLOC_PROTO(rkv, rkv_t)
38 GK_MKPQUEUE_PROTO(ipq, ipq_t, idx_t, idx_t)
39 GK_MKPQUEUE_PROTO(rpq, rpq_t, real_t, idx_t)
42 void isorti(size_t n, idx_t *base);
43 void isortd(size_t n, idx_t *base);
44 void rsorti(size_t n, real_t *base);
45 void rsortd(size_t n, real_t *base);
46 void ikvsorti(size_t n, ikv_t *base);
47 void ikvsortii(size_t n, ikv_t *base);
48 void ikvsortd(size_t n, ikv_t *base);
49 void rkvsorti(size_t n, rkv_t *base);
50 void rkvsortd(size_t n, rkv_t *base);
51 void uvwsorti(size_t n, uvw_t *base);
52 
53 #endif
rkvsortd
void rkvsortd(size_t n, rkv_t *base)
Definition: gklib.c:107
GK_MKARRAY2CSR_PROTO
#define GK_MKARRAY2CSR_PROTO(PRFX, TYPE)
Definition: gk_mkutils.h:36
ikvsortii
void ikvsortii(size_t n, ikv_t *base)
Definition: gklib.c:86
rsorti
void rsorti(size_t n, real_t *base)
Definition: gklib.c:64
GK_MKPQUEUE_T
#define GK_MKPQUEUE_T(NAME, KVTYPE)
Definition: gk_struct.h:39
base
Annotation indicating that a class derives from another given type.
Definition: attr.h:64
ikvsortd
void ikvsortd(size_t n, ikv_t *base)
Definition: gklib.c:93
GK_MKALLOC_PROTO
#define GK_MKALLOC_PROTO(PRFX, TYPE)
Definition: gk_mkmemory.h:130
n
int n
Definition: BiCGSTAB_simple.cpp:1
GK_MKBLAS_PROTO
#define GK_MKBLAS_PROTO(PRFX, TYPE, OUTTYPE)
Definition: gk_mkblas.h:187
ikvsorti
void ikvsorti(size_t n, ikv_t *base)
Definition: gklib.c:78
rkvsorti
void rkvsorti(size_t n, rkv_t *base)
Definition: gklib.c:100
GK_MKRANDOM_PROTO
#define GK_MKRANDOM_PROTO(FPRFX, RNGT, VALT)
Definition: gk_mkrandom.h:111
GK_MKPQUEUE_PROTO
#define GK_MKPQUEUE_PROTO(FPRFX, PQT, KT, VT)
Definition: gk_mkpqueue.h:382
GK_MKKEYVALUE_T
#define GK_MKKEYVALUE_T(NAME, KEYTYPE, VALTYPE)
Definition: gk_struct.h:17
isorti
void isorti(size_t n, idx_t *base)
Definition: gklib.c:50
uvwsorti
void uvwsorti(size_t n, uvw_t *base)
Definition: gklib.c:114
isortd
void isortd(size_t n, idx_t *base)
Definition: gklib.c:57
v
Array< int, Dynamic, 1 > v
Definition: Array_initializer_list_vector_cxx11.cpp:1
uvw_t
Definition: gklib_defs.h:18
real_t
float real_t
Definition: include/metis.h:132
uvw_t::w
idx_t w
Definition: gklib_defs.h:19
gklib_rename.h
rsortd
void rsortd(size_t n, real_t *base)
Definition: gklib.c:71
i
int i
Definition: BiCGSTAB_step_by_step.cpp:9
idx_t
int32_t idx_t
Definition: include/metis.h:101


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:32:38