Program listing for file numerics/src/tools/NumericsArrays.h#

 1#ifndef NUMERICSARRAYS_H
 2#define NUMERICSARRAYS_H
 3
 4
 5
 6#include <stddef.h>
 7#include "SiconosConfig.h"
 8
 9#ifdef __cplusplus
10#undef restrict
11#define restrict __restrict
12#endif
13
14#if defined(__cplusplus) && !defined(BUILD_AS_CPP)
15extern "C"
16{
17#endif
18
19
20  void NA_diffns(int *na, int *a, int *nb, int * b, int *nc, int *c);
21
22
23  void NA_sortsn_(int *ddl_i, int *sort, int *n);
24
25  size_t NA_rm_duplicate(size_t *arr, size_t len);
26
27  void NA_sort_bubble(size_t *arr, size_t len);
28
29
30  void NA_merge_sorted_arrays(size_t * arr1, size_t * arr2, size_t n1,
31                size_t n2, size_t *arr3);
32
33  size_t  NA_merge_and_sort_sorted_arrays(size_t * arr1, size_t * arr2, size_t n1,
34                                       size_t n2, size_t *arr3);
35  void NA_display(size_t * arr1,  size_t n1);
36
37
38  void uint_swap (unsigned int *a, unsigned int *b);
39
40  void uint_shuffle (unsigned int *a, unsigned int n);
41
42#if defined(__cplusplus) && !defined(BUILD_AS_CPP)
43}
44#endif
45
46#endif