1 | /* ------------------- */ |
---|
2 | /* --- nrarith2x.h --- */ |
---|
3 | /* ------------------- */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved |
---|
7 | * Univ Paris Sud XI, CNRS |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef _NRARITH2X_H_ |
---|
11 | #define _NRARITH2X_H_ |
---|
12 | |
---|
13 | // Add conditionnel |
---|
14 | |
---|
15 | #define addcnz_type_matrix(t) \ |
---|
16 | void short_name(t,addcnz_,matrix)(t ** src, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t cte, t ** dst) |
---|
17 | |
---|
18 | addcnz_type_matrix(int8_t); |
---|
19 | addcnz_type_matrix(uint8_t); |
---|
20 | addcnz_type_matrix(int16_t); |
---|
21 | addcnz_type_matrix(uint16_t); |
---|
22 | addcnz_type_matrix(int32_t); |
---|
23 | addcnz_type_matrix(uint32_t); |
---|
24 | addcnz_type_matrix(int64_t); |
---|
25 | addcnz_type_matrix(uint64_t); |
---|
26 | addcnz_type_matrix(float); |
---|
27 | addcnz_type_matrix(double); |
---|
28 | |
---|
29 | |
---|
30 | #define addandc_type_matrix(t) \ |
---|
31 | void short_name(t,addandc_,matrix)(t ** src, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t cte, t ** dst) |
---|
32 | |
---|
33 | addandc_type_matrix(int8_t); |
---|
34 | addandc_type_matrix(uint8_t); |
---|
35 | addandc_type_matrix(int16_t); |
---|
36 | addandc_type_matrix(uint16_t); |
---|
37 | addandc_type_matrix(int32_t); |
---|
38 | addandc_type_matrix(uint32_t); |
---|
39 | addandc_type_matrix(int64_t); |
---|
40 | addandc_type_matrix(uint64_t); |
---|
41 | addandc_type_matrix(float); |
---|
42 | addandc_type_matrix(double); |
---|
43 | |
---|
44 | |
---|
45 | /* renvoie la somme des points de la matrice */ |
---|
46 | |
---|
47 | #define sum_type_matrix(t,rt) \ |
---|
48 | rt short_name(t,sum_,matrix)(t ** m, int32_t nrl, int32_t nrh,int32_t ncl, int32_t nch) |
---|
49 | |
---|
50 | sum_type_matrix(int8_t, int32_t); |
---|
51 | sum_type_matrix(uint8_t, uint32_t); |
---|
52 | sum_type_matrix(int16_t, int32_t); |
---|
53 | sum_type_matrix(uint16_t, uint32_t); |
---|
54 | sum_type_matrix(int32_t, int64_t); |
---|
55 | sum_type_matrix(uint32_t, uint64_t); |
---|
56 | sum_type_matrix(int64_t, int64_t); |
---|
57 | sum_type_matrix(uint64_t, uint64_t); |
---|
58 | sum_type_matrix(float, float); |
---|
59 | sum_type_matrix(double, double); |
---|
60 | |
---|
61 | |
---|
62 | |
---|
63 | #endif /* _NRUTIL_H_ */ |
---|
64 | |
---|
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 | |
---|