[772] | 1 | /* ----------------- */ |
---|
| 2 | /* --- nrsort1.h --- */ |
---|
| 3 | /* ----------------- */ |
---|
| 4 | |
---|
| 5 | /* |
---|
| 6 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved |
---|
| 7 | * Univ Paris Sud XI, CNRS |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #ifndef _NRSORT1_H_ |
---|
| 11 | #define _NRSORT1_H_ |
---|
| 12 | |
---|
[826] | 13 | #define extractnz_boundaries_type_vector(t) \ |
---|
| 14 | void short_name(t,extractnz_boundaries_,vector)(t * v, int32_t nl, int32_t nh, int32_t * nlnz, int32_t * nhnz); |
---|
[772] | 15 | |
---|
[826] | 16 | extractnz_boundaries_type_vector(int8_t); |
---|
| 17 | extractnz_boundaries_type_vector(uint8_t); |
---|
| 18 | extractnz_boundaries_type_vector(int16_t); |
---|
| 19 | extractnz_boundaries_type_vector(uint16_t); |
---|
| 20 | extractnz_boundaries_type_vector(int32_t); |
---|
| 21 | extractnz_boundaries_type_vector(uint32_t); |
---|
| 22 | extractnz_boundaries_type_vector(int64_t); |
---|
| 23 | extractnz_boundaries_type_vector(uint64_t); |
---|
| 24 | extractnz_boundaries_type_vector(float); |
---|
| 25 | extractnz_boundaries_type_vector(double); |
---|
[772] | 26 | |
---|
| 27 | |
---|
| 28 | |
---|
[826] | 29 | void sort_index_f64vector_selection(double * key, int32_t nl, int32_t nh, int32_t * index); |
---|
| 30 | void sort_index_ivector_selection_min(int32_t * key, int32_t nl, int32_t nh, int32_t * index); |
---|
| 31 | void sort_index_ivector_selection_max(int32_t * key, int32_t nl, int32_t nh, int32_t * index); |
---|
| 32 | void sort_index_vector_selection_min(float * key, int32_t nl, int32_t nh, int32_t * index); |
---|
| 33 | void sort_index_vector_selection_max(float * key, int32_t nl, int32_t nh, int32_t * index); |
---|
| 34 | void sort_index_vector_selection_kmin(float * key, int32_t nl, int32_t nh, int32_t * index, int32_t k); |
---|
| 35 | void sort_index_ivector_selection_kmin(int32_t * key, int32_t nl, int32_t nh, int32_t * index, int32_t k); |
---|
| 36 | void sort_index_vector_selection_kmax(float * key, int32_t nl, int32_t nh, int32_t * index, int32_t k); |
---|
| 37 | void sort_index_ivector_selection_kmax(int32_t * key, int32_t nl, int32_t nh, int32_t * index, int32_t k); |
---|
| 38 | void sort_bvector_selection_min(int8_t * v, int32_t nl, int32_t nh); |
---|
[772] | 39 | |
---|
| 40 | /* |
---|
| 41 | * ATTENTION le tableau index DOIT etre initialise (et alloue) |
---|
| 42 | */ |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | /* ======================================================================== */ |
---|
| 46 | /* == Select = order/rank filter = median ================================= */ |
---|
| 47 | /* ======================================================================== */ |
---|
[826] | 48 | int8_t select_bvector(int8_t * v, int32_t nl, int32_t nh, int32_t k); |
---|
| 49 | rgb8 select_rgb8vector(rgb8 * v, int32_t nl, int32_t nh, int32_t k); |
---|
[772] | 50 | |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | #endif /* _NRSORT1_H_ */ |
---|
[826] | 54 | |
---|