[772] | 1 | /* ---------------- */ |
---|
| 2 | /* --- nrio2x.h --- */ |
---|
| 3 | /* ---------------- */ |
---|
| 4 | |
---|
| 5 | /* |
---|
| 6 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved |
---|
| 7 | * Univ Paris Sud XI, CNRS |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #ifndef __NRIO2X_H__ |
---|
| 11 | #define __NRIO2X_H__ |
---|
| 12 | |
---|
| 13 | |
---|
[823] | 14 | /* ------------------------------ */ |
---|
| 15 | /* --- display_matrix_endline --- */ |
---|
[772] | 16 | /* --- display_matrix_endline0 --- */ |
---|
| 17 | /* --- display_matrix_endline1 --- */ |
---|
| 18 | /* --- display_matrix_number_endline0 --- */ |
---|
[823] | 19 | /* --- display_matrix_number_endline1 --- */ |
---|
| 20 | /* ------------------------------ */ |
---|
[772] | 21 | |
---|
[823] | 22 | #define display_type_matrix_endline(t) \ |
---|
| 23 | void short_name(t,display_,matrix_endline)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * name); \ |
---|
| 24 | void short_name(t,display_,matrix_endline0)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * name); \ |
---|
| 25 | void short_name(t,display_,matrix_endline1)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * name); \ |
---|
| 26 | void short_name(t,display_,matrix_number_endline0)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * name); \ |
---|
| 27 | void short_name(t,display_,matrix_number_endline1)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * name); |
---|
[772] | 28 | |
---|
[823] | 29 | display_type_matrix_endline(int8_t); |
---|
| 30 | display_type_matrix_endline(uint8_t); |
---|
| 31 | display_type_matrix_endline(int16_t); |
---|
| 32 | display_type_matrix_endline(uint16_t); |
---|
| 33 | display_type_matrix_endline(int32_t); |
---|
| 34 | display_type_matrix_endline(uint32_t); |
---|
| 35 | display_type_matrix_endline(int64_t); |
---|
| 36 | display_type_matrix_endline(uint64_t); |
---|
[772] | 37 | |
---|
| 38 | |
---|
| 39 | /* ------------------------- */ |
---|
| 40 | /* --- display_trimatrix --- */ |
---|
| 41 | /* ------------------------- */ |
---|
| 42 | |
---|
[823] | 43 | #define display_type_trimatrix(t) \ |
---|
| 44 | void short_name(t,display_,trimatrix)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, int32_t step, char * format, char * name); |
---|
[772] | 45 | |
---|
[823] | 46 | display_type_trimatrix(int8_t); |
---|
| 47 | display_type_trimatrix(uint8_t); |
---|
| 48 | display_type_trimatrix(int16_t); |
---|
| 49 | display_type_trimatrix(uint16_t); |
---|
| 50 | display_type_trimatrix(int32_t); |
---|
| 51 | display_type_trimatrix(uint32_t); |
---|
| 52 | display_type_trimatrix(int64_t); |
---|
| 53 | display_type_trimatrix(uint64_t); |
---|
| 54 | display_type_trimatrix(float); |
---|
| 55 | display_type_trimatrix(double); |
---|
[772] | 56 | |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | |
---|
[823] | 60 | /* ----------------------- */ |
---|
| 61 | /* --- write_trimatrix --- */ |
---|
| 62 | /* --- write_matrix_endline --- */ |
---|
[772] | 63 | /* --- write_imatrix_endline0 --- */ |
---|
| 64 | /* --- write_imatrix_endline1 --- */ |
---|
| 65 | /* --- write_imatrix_number_endline0 --- */ |
---|
[823] | 66 | /* --- write_imatrix_number_endline1 --- */ |
---|
| 67 | /* -- fwrite_trimatrix -- */ |
---|
| 68 | /* -- fread_trimatrix -- */ |
---|
| 69 | /* ----------------------- */ |
---|
[772] | 70 | |
---|
[823] | 71 | #define write_type_trimatrix(t) \ |
---|
| 72 | void short_name(t,write_,trimatrix)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, int32_t step, char * format, char * filename); \ |
---|
| 73 | void short_name(t,write_,matrix_endline)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * filename); \ |
---|
| 74 | void short_name(t,write_,matrix_endline0)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * filename); \ |
---|
| 75 | void short_name(t,write_,matrix_endline1)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * filename); \ |
---|
| 76 | void short_name(t,write_,matrix_number_endline0)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * filename); \ |
---|
| 77 | void short_name(t,write_,matrix_number_endline1)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * filename); \ |
---|
| 78 | void short_name(t,fwrite_,trimatrix)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, int32_t step, char * filename); \ |
---|
| 79 | void short_name(t,fread_,trimatrix)(char * filename, t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, int32_t step); |
---|
[772] | 80 | |
---|
[823] | 81 | write_type_trimatrix(int8_t); |
---|
| 82 | write_type_trimatrix(uint8_t); |
---|
| 83 | write_type_trimatrix(int16_t); |
---|
| 84 | write_type_trimatrix(uint16_t); |
---|
| 85 | write_type_trimatrix(int32_t); |
---|
| 86 | write_type_trimatrix(uint32_t); |
---|
| 87 | write_type_trimatrix(int64_t); |
---|
| 88 | write_type_trimatrix(uint64_t); |
---|
| 89 | write_type_trimatrix(float); |
---|
| 90 | write_type_trimatrix(double); |
---|
[772] | 91 | |
---|
| 92 | |
---|
| 93 | |
---|
[823] | 94 | #endif /* __NRIO2X_H__ */ |
---|
[772] | 95 | |
---|
| 96 | |
---|
[823] | 97 | // Local Variables: |
---|
| 98 | // tab-width: 4 |
---|
| 99 | // c-basic-offset: 4 |
---|
| 100 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
---|
| 101 | // indent-tabs-mode: nil |
---|
| 102 | // End: |
---|
[772] | 103 | |
---|
[823] | 104 | // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
[772] | 105 | |
---|