Go to the source code of this file.
Functions | |
void | gk_csorti (size_t n, char *base) |
void | gk_csortd (size_t n, char *base) |
void | gk_isorti (size_t n, int *base) |
void | gk_isortd (size_t n, int *base) |
void | gk_fsorti (size_t n, float *base) |
void | gk_fsortd (size_t n, float *base) |
void | gk_dsorti (size_t n, double *base) |
void | gk_dsortd (size_t n, double *base) |
void | gk_idxsorti (size_t n, gk_idx_t *base) |
void | gk_idxsortd (size_t n, gk_idx_t *base) |
void | gk_ckvsorti (size_t n, gk_ckv_t *base) |
void | gk_ckvsortd (size_t n, gk_ckv_t *base) |
void | gk_ikvsorti (size_t n, gk_ikv_t *base) |
void | gk_ikvsortd (size_t n, gk_ikv_t *base) |
void | gk_i32kvsorti (size_t n, gk_i32kv_t *base) |
void | gk_i32kvsortd (size_t n, gk_i32kv_t *base) |
void | gk_i64kvsorti (size_t n, gk_i64kv_t *base) |
void | gk_i64kvsortd (size_t n, gk_i64kv_t *base) |
void | gk_zkvsorti (size_t n, gk_zkv_t *base) |
void | gk_zkvsortd (size_t n, gk_zkv_t *base) |
void | gk_fkvsorti (size_t n, gk_fkv_t *base) |
void | gk_fkvsortd (size_t n, gk_fkv_t *base) |
void | gk_dkvsorti (size_t n, gk_dkv_t *base) |
void | gk_dkvsortd (size_t n, gk_dkv_t *base) |
void | gk_skvsorti (size_t n, gk_skv_t *base) |
void | gk_skvsortd (size_t n, gk_skv_t *base) |
void | gk_idxkvsorti (size_t n, gk_idxkv_t *base) |
void | gk_idxkvsortd (size_t n, gk_idxkv_t *base) |
These routines are implemented using the GKSORT macro that is defined in gk_qsort.h and is based on GNU's GLIBC qsort() implementation.
Additional sorting routines can be created using the same way that these routines where defined.
$Id: sort.c 10796 2011-09-23 21:33:09Z karypis $
Definition in file sort.c.
void gk_csorti | ( | size_t | n, | |
char * | base | |||
) |
void gk_csortd | ( | size_t | n, | |
char * | base | |||
) |
Sorts an array of integers in increasing order
Definition at line 45 of file sort.c.
Referenced by test_isort().
Sorts an array of integers in decreasing order
Definition at line 56 of file sort.c.
Referenced by test_isort().
Sorts an array of floats in increasing order
Definition at line 67 of file sort.c.
Referenced by test_fsort().
Sorts an array of floats in decreasing order
Definition at line 78 of file sort.c.
Referenced by test_fsort().
void gk_dsorti | ( | size_t | n, | |
double * | base | |||
) |
void gk_dsortd | ( | size_t | n, | |
double * | base | |||
) |
Sorts an array of gk_idx_t in increasing order
Definition at line 111 of file sort.c.
References gk_idx_t.
Referenced by test_idxsort().
Sorts an array of gk_idx_t in decreasing order
Definition at line 122 of file sort.c.
References gk_idx_t.
Referenced by test_idxsort().
void gk_ckvsorti | ( | size_t | n, | |
gk_ckv_t * | base | |||
) |
void gk_ckvsortd | ( | size_t | n, | |
gk_ckv_t * | base | |||
) |
void gk_ikvsorti | ( | size_t | n, | |
gk_ikv_t * | base | |||
) |
Sorts an array of gk_ikv_t in increasing order
Definition at line 157 of file sort.c.
Referenced by gk_csr_SortIndices(), gk_graph_SortAdjacencies(), itemsets_project_matrix(), and test_ikvsort().
void gk_ikvsortd | ( | size_t | n, | |
gk_ikv_t * | base | |||
) |
Sorts an array of gk_ikv_t in decreasing order
Definition at line 168 of file sort.c.
Referenced by gk_csr_CompactColumns(), and test_ikvsort().
void gk_i32kvsorti | ( | size_t | n, | |
gk_i32kv_t * | base | |||
) |
void gk_i32kvsortd | ( | size_t | n, | |
gk_i32kv_t * | base | |||
) |
void gk_i64kvsorti | ( | size_t | n, | |
gk_i64kv_t * | base | |||
) |
void gk_i64kvsortd | ( | size_t | n, | |
gk_i64kv_t * | base | |||
) |
void gk_zkvsorti | ( | size_t | n, | |
gk_zkv_t * | base | |||
) |
void gk_zkvsortd | ( | size_t | n, | |
gk_zkv_t * | base | |||
) |
void gk_fkvsorti | ( | size_t | n, | |
gk_fkv_t * | base | |||
) |
Sorts an array of gk_fkv_t in increasing order
Definition at line 245 of file sort.c.
Referenced by reorder_centroid(), and test_fkvsort().
void gk_fkvsortd | ( | size_t | n, | |
gk_fkv_t * | base | |||
) |
Sorts an array of gk_fkv_t in decreasing order
Definition at line 256 of file sort.c.
Referenced by gk_csr_GetSimilarRows(), gk_csr_LowFilter(), gk_csr_TopKPlusFilter(), and test_fkvsort().
void gk_dkvsorti | ( | size_t | n, | |
gk_dkv_t * | base | |||
) |
Sorts an array of gk_dkv_t in increasing order
Definition at line 267 of file sort.c.
Referenced by test_dkvsort().
void gk_dkvsortd | ( | size_t | n, | |
gk_dkv_t * | base | |||
) |
Sorts an array of gk_fkv_t in decreasing order
Definition at line 278 of file sort.c.
Referenced by test_dkvsort().
void gk_skvsorti | ( | size_t | n, | |
gk_skv_t * | base | |||
) |
Sorts an array of gk_skv_t in increasing order
Definition at line 289 of file sort.c.
Referenced by test_skvsort().
void gk_skvsortd | ( | size_t | n, | |
gk_skv_t * | base | |||
) |
Sorts an array of gk_skv_t in decreasing order
Definition at line 300 of file sort.c.
Referenced by test_skvsort().
void gk_idxkvsorti | ( | size_t | n, | |
gk_idxkv_t * | base | |||
) |
Sorts an array of gk_idxkv_t in increasing order
Definition at line 311 of file sort.c.
Referenced by test_idxkvsort().
void gk_idxkvsortd | ( | size_t | n, | |
gk_idxkv_t * | base | |||
) |
Sorts an array of gk_idxkv_t in decreasing order
Definition at line 322 of file sort.c.
Referenced by test_idxkvsort().