- Timestamp:
- Jul 13, 2017, 11:01:58 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/rosenfeld/nrc2/include/nrsort2.h
r772 r826 11 11 #define _NRSORT2_H_ 12 12 13 #ifdef __cplusplus 14 #ifdef PRAGMA_VERBOSE 15 #pragma message ("C++") 16 #endif 17 extern "C" { 18 #endif 13 #define extractnz_boundaries_type_matrix(t) \ 14 void short_name(t,extractnz_boundaries_,matrix)(t ** m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t * nclnz, int32_t * nchnz); 19 15 20 #ifdef PRAGMA_VERBOSE 21 //#pragma message("- include nrsort2.h") 22 #endif 16 extractnz_boundaries_type_matrix(int8_t); 17 extractnz_boundaries_type_matrix(uint8_t); 18 extractnz_boundaries_type_matrix(int16_t); 19 extractnz_boundaries_type_matrix(uint16_t); 20 extractnz_boundaries_type_matrix(int32_t); 21 extractnz_boundaries_type_matrix(uint32_t); 22 extractnz_boundaries_type_matrix(int64_t); 23 extractnz_boundaries_type_matrix(uint64_t); 24 extractnz_boundaries_type_matrix(float); 25 extractnz_boundaries_type_matrix(double); 23 26 24 IMAGE_EXPORT(void) sort_dmatrix_selection (double *m, long nl, long nh);25 27 26 IMAGE_EXPORT(void) sort_imatrix_selection2(int **m, long nl, long nh); 27 IMAGE_EXPORT(void) sort_imatrix_selection (int **m, long nrl, long nrh, long ncl, long nch, long nrow); 28 void sort_si32matrix_selection2(int32_t ** m, int32_t nl, int32_t nh); 29 void sort_f64matrix_selection(double * m, int32_t nl, int32_t nh); 30 void sort_si32matrix_selection(int32_t ** m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t nrow); 31 void sort_si32matrix_leftpart_selection2(int32_t ** m, int32_t nl, int32_t nh, int32_t len); 28 32 29 IMAGE_EXPORT(void) sort_imatrix_leftpart_selection2(int **m, long nl, long nh, long len);30 33 /* 31 34 * Sort the first len item of a 2-row matrix 32 35 */ 33 36 34 IMAGE_EXPORT(void) sort_index_imatrix_selection_kmin(int **key, long nrl,long nrh,long ncl, long nch, int **index, int k); 35 IMAGE_EXPORT(void) sort_index_imatrix_selection_kmax(int **key, long nrl,long nrh,long ncl, long nch, int **index, int k); 37 void sort_index_si32matrix_selection_kmin(int32_t ** key, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ** index, int32_t k); 38 void sort_index_si32matrix_selection_kmax(int32_t ** key, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ** index, int32_t k); 39 36 40 /* 37 41 * appel de "sort_index_ivector_selection_k" pour chaque ligne … … 39 43 */ 40 44 41 IMAGE_EXPORT(void) sortv_imatrix_selection_min(int **m, long nrl,long nrh,long ncl, long nch, long nc); 42 IMAGE_EXPORT(void) sortv_imatrix_selection_max(int **m, long nrl,long nrh,long ncl, long nch, long nc); 43 44 IMAGE_EXPORT(void) sortv_imatrix_selection_kmin(int **m, long nrl,long nrh,long ncl, long nch, long nc, int k); 45 IMAGE_EXPORT(void) sortv_imatrix_selection_kmax(int **m, long nrl,long nrh,long ncl, long nch, long nc, int k); 45 void sortv_si32matrix_selection_min(int32_t ** m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t nc); 46 void sortv_si32matrix_selection_max(int32_t ** m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t nc); 47 void sortv_si32matrix_selection_kmin(int32_t ** m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t nc, int32_t k); 48 void sortv_si32matrix_selection_kmax(int32_t ** m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t nc, int32_t k); 46 49 47 50 /* … … 49 52 * tri vertical, d'une partie des lignes 50 53 */ 51 IMAGE_EXPORT(void) sortv_index_imatrix_selection_max(int **key, long nrl,long nrh,long ncl, long nch, int *index, int nc); 52 IMAGE_EXPORT(void) sortv_index_imatrix_selection_min(int **key, long nrl,long nrh,long ncl, long nch, int *index, int nc); 54 55 void sortv_index_imatrix_selection_max(int ** key, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t * index, int32_t nc); 56 void sortv_index_imatrix_selection_min(int32_t ** key, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t * index, int32_t nc); 57 53 58 /* 54 59 * trie de la colonne nc de la matrice key, nc[ncl..nch] … … 56 61 */ 57 62 58 #ifdef __cplusplus 59 } 60 #endif 63 #endif /* _NRSORT2_H_ */ 61 64 62 #endif /* _NRSORT2_H_ */ 65 // Local Variables: 66 // tab-width: 4 67 // c-basic-offset: 4 68 // c-file-offsets:((innamespace . 0)(inline-open . 0)) 69 // indent-tabs-mode: nil 70 // End: 71 72 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 73
Note: See TracChangeset
for help on using the changeset viewer.