Ignore:
Timestamp:
Jul 13, 2017, 11:01:58 AM (7 years ago)
Author:
meunier
Message:
  • Mise à jour NR2 et Rosenfeld
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/rosenfeld/nrc2/include/nrsort2.h

    r772 r826  
    1111#define _NRSORT2_H_
    1212
    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) \
     14void 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);
    1915
    20 #ifdef PRAGMA_VERBOSE
    21 //#pragma message("- include nrsort2.h")
    22 #endif
     16extractnz_boundaries_type_matrix(int8_t);
     17extractnz_boundaries_type_matrix(uint8_t);
     18extractnz_boundaries_type_matrix(int16_t);
     19extractnz_boundaries_type_matrix(uint16_t);
     20extractnz_boundaries_type_matrix(int32_t);
     21extractnz_boundaries_type_matrix(uint32_t);
     22extractnz_boundaries_type_matrix(int64_t);
     23extractnz_boundaries_type_matrix(uint64_t);
     24extractnz_boundaries_type_matrix(float);
     25extractnz_boundaries_type_matrix(double);
    2326
    24 IMAGE_EXPORT(void) sort_dmatrix_selection (double *m, long nl, long nh);
    2527
    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);
     28void sort_si32matrix_selection2(int32_t ** m, int32_t nl, int32_t nh);
     29void sort_f64matrix_selection(double * m, int32_t nl, int32_t nh);
     30void sort_si32matrix_selection(int32_t ** m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t nrow);
     31void sort_si32matrix_leftpart_selection2(int32_t ** m, int32_t nl, int32_t nh, int32_t len);
    2832
    29 IMAGE_EXPORT(void) sort_imatrix_leftpart_selection2(int **m, long nl, long nh, long len);
    3033/*
    3134 * Sort the first len item of a 2-row matrix
    3235 */
    3336
    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);
     37void 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);
     38void 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
    3640/*
    3741 * appel de "sort_index_ivector_selection_k" pour chaque ligne
     
    3943 */
    4044
    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);
     45void sortv_si32matrix_selection_min(int32_t ** m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t nc);
     46void sortv_si32matrix_selection_max(int32_t ** m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t nc);
     47void 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);
     48void 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);
    4649
    4750/*
     
    4952 * tri vertical, d'une partie des lignes
    5053 */
    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
     55void 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);
     56void 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
    5358/*
    5459 * trie de la colonne nc de la matrice key, nc[ncl..nch]
     
    5661 */
    5762
    58 #ifdef __cplusplus
    59 }
    60 #endif
     63#endif /* _NRSORT2_H_ */
    6164
    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.