Overview
Comment: | Templates allow return types to differ from arguments. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
24dfa443fc7bd2790e2d7e4895a5bdac |
User & Date: | geraint@users.sourceforge.net on 2001-04-23 22:28:06 |
Other Links: | branch diff | manifest | tags |
Context
2001-04-24
| ||
16:39:36 | Uses new 2-port sR and sC check-in: 29b09bdf62 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2001-04-23
| ||
22:28:06 | Templates allow return types to differ from arguments. check-in: 24dfa443fc user: geraint@users.sourceforge.net tags: origin/master, trunk | |
22:25:29 | Plots each column individually. check-in: 75eb8f868e user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/cc/include/useful-functions.hh from [37750f990b] to [1c223463ca].
1 2 3 4 5 6 7 8 9 10 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | + + + - + + - + - - - + + + + + - - - + + + - - + + + + + + + + - - - + - - + + + - - + + - + + + - + - - - - - - + + + + + + + + + + + + + + + + + | #define pi 3.14159 // Predefine pi #ifndef HAVE_USEFUL_FUNCTIONS_HH #define HAVE_USEFUL_FUNCTIONS_HH #ifdef __CPLUSPLUS template <class return_t> template <class class_t> typedef class_t &classref_t; #else #define inline // strip from pre-processed file #define return_t double |
︙ | |||
88 89 90 91 92 93 94 95 96 | 112 113 114 115 116 117 118 119 120 121 122 123 | + + + | Matrix zeros (const int r, const int c) { Matrix m (r, c, 0.0); return m; } #endif __CPLUSPLUS #endif // HAVE_USEFUL_FUNCTIONS_HH |