| 1 | /* |
| 2 | * Implement Heap sort -- direct and indirect sorting |
| 3 | * Based on descriptions in Sedgewick "Algorithms in C" |
| 4 | * |
| 5 | * Copyright (C) 1999 Thomas Walter |
| 6 | * |
| 7 | * 18 February 2000: Modified for GSL by Brian Gough |
| 8 | * |
| 9 | * This is free software; you can redistribute it and/or modify it |
| 10 | * under the terms of the GNU General Public License as published by the |
| 11 | * Free Software Foundation; either version 3, or (at your option) any |
| 12 | * later version. |
| 13 | * |
| 14 | * This source is distributed in the hope that it will be useful, but WITHOUT |
| 15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 17 | * for more details. |
| 18 | */ |
| 19 | |
| 20 | #include "gsl__config.h"cxx . . $ `<file>/external/gsl/gsl__config.h`/ |
| 21 | #include "gsl_errno.h"cxx . . $ `<file>/external/gsl/gsl_errno.h`/ |
| 22 | #include "gsl_vector.h"cxx . . $ `<file>/external/gsl/gsl_vector.h`/ |
| 23 | #include "gsl_sort.h"cxx . . $ `<file>/external/gsl/gsl_sort.h`/ |
| 24 | #include "gsl_sort_vector.h"cxx . . $ `<file>/external/gsl/gsl_sort_vector.h`/ |
| 25 | |
| 26 | #define BASE_LONG_DOUBLEcxx . . $ `external/gsl/gsl_sort__sortvec.c:26:9`! |
| 27 | #include "templates_on.h"cxx . . $ `<file>/external/gsl/templates_on.h`/ |
| 28 | #include "gsl_sort__sortvec_source.c"cxx . . $ `<file>/external/gsl/gsl_sort__sortvec_source.c`/ |
| 29 | #include "templates_off.h"cxx . . $ `<file>/external/gsl/templates_off.h`/ |
| 30 | #undef BASE_LONG_DOUBLEcxx . . $ `external/gsl/gsl_sort__sortvec.c:26:9`! |
| 31 | |
| 32 | #define BASE_DOUBLEcxx . . $ `external/gsl/gsl_sort__sortvec.c:32:9`! |
| 33 | #include "templates_on.h"cxx . . $ `<file>/external/gsl/templates_on.h`/ |
| 34 | #include "gsl_sort__sortvec_source.c"cxx . . $ `<file>/external/gsl/gsl_sort__sortvec_source.c`/ |
| 35 | #include "templates_off.h"cxx . . $ `<file>/external/gsl/templates_off.h`/ |
| 36 | #undef BASE_DOUBLEcxx . . $ `external/gsl/gsl_sort__sortvec.c:32:9`! |
| 37 | |
| 38 | #define BASE_FLOATcxx . . $ `external/gsl/gsl_sort__sortvec.c:38:9`! |
| 39 | #include "templates_on.h"cxx . . $ `<file>/external/gsl/templates_on.h`/ |
| 40 | #include "gsl_sort__sortvec_source.c"cxx . . $ `<file>/external/gsl/gsl_sort__sortvec_source.c`/ |
| 41 | #include "templates_off.h"cxx . . $ `<file>/external/gsl/templates_off.h`/ |
| 42 | #undef BASE_FLOATcxx . . $ `external/gsl/gsl_sort__sortvec.c:38:9`! |
| 43 | |
| 44 | #define BASE_ULONGcxx . . $ `external/gsl/gsl_sort__sortvec.c:44:9`! |
| 45 | #include "templates_on.h"cxx . . $ `<file>/external/gsl/templates_on.h`/ |
| 46 | #include "gsl_sort__sortvec_source.c"cxx . . $ `<file>/external/gsl/gsl_sort__sortvec_source.c`/ |
| 47 | #include "templates_off.h"cxx . . $ `<file>/external/gsl/templates_off.h`/ |
| 48 | #undef BASE_ULONGcxx . . $ `external/gsl/gsl_sort__sortvec.c:44:9`! |
| 49 | |
| 50 | #define BASE_LONGcxx . . $ `external/gsl/gsl_sort__sortvec.c:50:9`! |
| 51 | #include "templates_on.h"cxx . . $ `<file>/external/gsl/templates_on.h`/ |
| 52 | #include "gsl_sort__sortvec_source.c"cxx . . $ `<file>/external/gsl/gsl_sort__sortvec_source.c`/ |
| 53 | #include "templates_off.h"cxx . . $ `<file>/external/gsl/templates_off.h`/ |
| 54 | #undef BASE_LONGcxx . . $ `external/gsl/gsl_sort__sortvec.c:50:9`! |
| 55 | |
| 56 | #define BASE_UINTcxx . . $ `external/gsl/gsl_sort__sortvec.c:56:9`! |
| 57 | #include "templates_on.h"cxx . . $ `<file>/external/gsl/templates_on.h`/ |
| 58 | #include "gsl_sort__sortvec_source.c"cxx . . $ `<file>/external/gsl/gsl_sort__sortvec_source.c`/ |
| 59 | #include "templates_off.h"cxx . . $ `<file>/external/gsl/templates_off.h`/ |
| 60 | #undef BASE_UINTcxx . . $ `external/gsl/gsl_sort__sortvec.c:56:9`! |
| 61 | |
| 62 | #define BASE_INTcxx . . $ `external/gsl/gsl_sort__sortvec.c:62:9`! |
| 63 | #include "templates_on.h"cxx . . $ `<file>/external/gsl/templates_on.h`/ |
| 64 | #include "gsl_sort__sortvec_source.c"cxx . . $ `<file>/external/gsl/gsl_sort__sortvec_source.c`/ |
| 65 | #include "templates_off.h"cxx . . $ `<file>/external/gsl/templates_off.h`/ |
| 66 | #undef BASE_INTcxx . . $ `external/gsl/gsl_sort__sortvec.c:62:9`! |
| 67 | |
| 68 | #define BASE_USHORTcxx . . $ `external/gsl/gsl_sort__sortvec.c:68:9`! |
| 69 | #include "templates_on.h"cxx . . $ `<file>/external/gsl/templates_on.h`/ |
| 70 | #include "gsl_sort__sortvec_source.c"cxx . . $ `<file>/external/gsl/gsl_sort__sortvec_source.c`/ |
| 71 | #include "templates_off.h"cxx . . $ `<file>/external/gsl/templates_off.h`/ |
| 72 | #undef BASE_USHORTcxx . . $ `external/gsl/gsl_sort__sortvec.c:68:9`! |
| 73 | |
| 74 | #define BASE_SHORTcxx . . $ `external/gsl/gsl_sort__sortvec.c:74:9`! |
| 75 | #include "templates_on.h"cxx . . $ `<file>/external/gsl/templates_on.h`/ |
| 76 | #include "gsl_sort__sortvec_source.c"cxx . . $ `<file>/external/gsl/gsl_sort__sortvec_source.c`/ |
| 77 | #include "templates_off.h"cxx . . $ `<file>/external/gsl/templates_off.h`/ |
| 78 | #undef BASE_SHORTcxx . . $ `external/gsl/gsl_sort__sortvec.c:74:9`! |
| 79 | |
| 80 | #define BASE_UCHARcxx . . $ `external/gsl/gsl_sort__sortvec.c:80:9`! |
| 81 | #include "templates_on.h"cxx . . $ `<file>/external/gsl/templates_on.h`/ |
| 82 | #include "gsl_sort__sortvec_source.c"cxx . . $ `<file>/external/gsl/gsl_sort__sortvec_source.c`/ |
| 83 | #include "templates_off.h"cxx . . $ `<file>/external/gsl/templates_off.h`/ |
| 84 | #undef BASE_UCHARcxx . . $ `external/gsl/gsl_sort__sortvec.c:80:9`! |
| 85 | |
| 86 | #define BASE_CHARcxx . . $ `external/gsl/gsl_sort__sortvec.c:86:9`! |
| 87 | #include "templates_on.h"cxx . . $ `<file>/external/gsl/templates_on.h`/ |
| 88 | #include "gsl_sort__sortvec_source.c"cxx . . $ `<file>/external/gsl/gsl_sort__sortvec_source.c`/ |
| 89 | #include "templates_off.h"cxx . . $ `<file>/external/gsl/templates_off.h`/ |
| 90 | #undef BASE_CHARcxx . . $ `external/gsl/gsl_sort__sortvec.c:86:9`! |