GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
libinterp
operators
op-int-concat.cc
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 2004-2013 John W. Eaton
4
5
This file is part of Octave.
6
7
Octave is free software; you can redistribute it and/or modify it
8
under the terms of the GNU General Public License as published by the
9
Free Software Foundation; either version 3 of the License, or (at your
10
option) any later version.
11
12
Octave is distributed in the hope that it will be useful, but WITHOUT
13
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15
for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with Octave; see the file COPYING. If not, see
19
<http://www.gnu.org/licenses/>.
20
21
*/
22
23
#ifdef HAVE_CONFIG_H
24
#include <config.h>
25
#endif
26
27
#include "
gripes.h
"
28
#include "
oct-obj.h
"
29
#include "
ov.h
"
30
#include "
ov-int8.h
"
31
#include "
ov-int16.h
"
32
#include "
ov-int32.h
"
33
#include "
ov-int64.h
"
34
#include "
ov-uint8.h
"
35
#include "
ov-uint16.h
"
36
#include "
ov-uint32.h
"
37
#include "
ov-uint64.h
"
38
#include "
ov-range.h
"
39
#include "
ov-bool.h
"
40
#include "
ov-bool-mat.h
"
41
#include "
ov-scalar.h
"
42
#include "
ov-float.h
"
43
#include "
ov-re-mat.h
"
44
#include "
ov-flt-re-mat.h
"
45
#include "
ov-str-mat.h
"
46
#include "
ov-typeinfo.h
"
47
#include "
op-int.h
"
48
#include "
ops.h
"
49
50
// Concatentation of mixed integer types:
51
52
OCTAVE_CONCAT_FN2
(int8, int16)
53
OCTAVE_CONCAT_FN2
(int8, int32)
54
OCTAVE_CONCAT_FN2
(int8, int64)
55
56
OCTAVE_CONCAT_FN2
(int8, uint8)
57
OCTAVE_CONCAT_FN2
(int8, uint16)
58
OCTAVE_CONCAT_FN2
(int8, uint32)
59
OCTAVE_CONCAT_FN2
(int8, uint64)
60
61
OCTAVE_CONCAT_FN2
(int16, int8)
62
OCTAVE_CONCAT_FN2
(int16, int32)
63
OCTAVE_CONCAT_FN2
(int16, int64)
64
65
OCTAVE_CONCAT_FN2
(int16, uint8)
66
OCTAVE_CONCAT_FN2
(int16, uint16)
67
OCTAVE_CONCAT_FN2
(int16, uint32)
68
OCTAVE_CONCAT_FN2
(int16, uint64)
69
70
OCTAVE_CONCAT_FN2
(int32, int8)
71
OCTAVE_CONCAT_FN2
(int32, int16)
72
OCTAVE_CONCAT_FN2
(int32, int64)
73
74
OCTAVE_CONCAT_FN2
(int32, uint8)
75
OCTAVE_CONCAT_FN2
(int32, uint16)
76
OCTAVE_CONCAT_FN2
(int32, uint32)
77
OCTAVE_CONCAT_FN2
(int32, uint64)
78
79
OCTAVE_CONCAT_FN2
(int64, int8)
80
OCTAVE_CONCAT_FN2
(int64, int16)
81
OCTAVE_CONCAT_FN2
(int64, int32)
82
83
OCTAVE_CONCAT_FN2
(int64, uint8)
84
OCTAVE_CONCAT_FN2
(int64, uint16)
85
OCTAVE_CONCAT_FN2
(int64, uint32)
86
OCTAVE_CONCAT_FN2
(int64, uint64)
87
88
OCTAVE_CONCAT_FN2
(uint8, int8)
89
OCTAVE_CONCAT_FN2
(uint8, int16)
90
OCTAVE_CONCAT_FN2
(uint8, int32)
91
OCTAVE_CONCAT_FN2
(uint8, int64)
92
93
OCTAVE_CONCAT_FN2
(uint8, uint16)
94
OCTAVE_CONCAT_FN2
(uint8, uint32)
95
OCTAVE_CONCAT_FN2
(uint8, uint64)
96
97
OCTAVE_CONCAT_FN2
(uint16, int8)
98
OCTAVE_CONCAT_FN2
(uint16, int16)
99
OCTAVE_CONCAT_FN2
(uint16, int32)
100
OCTAVE_CONCAT_FN2
(uint16, int64)
101
102
OCTAVE_CONCAT_FN2
(uint16, uint8)
103
OCTAVE_CONCAT_FN2
(uint16, uint32)
104
OCTAVE_CONCAT_FN2
(uint16, uint64)
105
106
OCTAVE_CONCAT_FN2
(uint32, int8)
107
OCTAVE_CONCAT_FN2
(uint32, int16)
108
OCTAVE_CONCAT_FN2
(uint32, int32)
109
OCTAVE_CONCAT_FN2
(uint32, int64)
110
111
OCTAVE_CONCAT_FN2
(uint32, uint8)
112
OCTAVE_CONCAT_FN2
(uint32, uint16)
113
OCTAVE_CONCAT_FN2
(uint32, uint64)
114
115
OCTAVE_CONCAT_FN2
(uint64, int8)
116
OCTAVE_CONCAT_FN2
(uint64, int16)
117
OCTAVE_CONCAT_FN2
(uint64, int32)
118
OCTAVE_CONCAT_FN2
(uint64, int64)
119
120
OCTAVE_CONCAT_FN2
(uint64, uint8)
121
OCTAVE_CONCAT_FN2
(uint64, uint16)
122
OCTAVE_CONCAT_FN2
(uint64, uint32)
123
124
OCTAVE_INT_DOUBLE_CONCAT_FN
(int8)
125
OCTAVE_INT_DOUBLE_CONCAT_FN
(int16)
126
OCTAVE_INT_DOUBLE_CONCAT_FN
(int32)
127
OCTAVE_INT_DOUBLE_CONCAT_FN
(int64)
128
129
OCTAVE_INT_DOUBLE_CONCAT_FN
(uint8)
130
OCTAVE_INT_DOUBLE_CONCAT_FN
(uint16)
131
OCTAVE_INT_DOUBLE_CONCAT_FN
(uint32)
132
OCTAVE_INT_DOUBLE_CONCAT_FN
(uint64)
133
134
OCTAVE_DOUBLE_INT_CONCAT_FN
(int8)
135
OCTAVE_DOUBLE_INT_CONCAT_FN
(int16)
136
OCTAVE_DOUBLE_INT_CONCAT_FN
(int32)
137
OCTAVE_DOUBLE_INT_CONCAT_FN
(int64)
138
139
OCTAVE_DOUBLE_INT_CONCAT_FN
(uint8)
140
OCTAVE_DOUBLE_INT_CONCAT_FN
(uint16)
141
OCTAVE_DOUBLE_INT_CONCAT_FN
(uint32)
142
OCTAVE_DOUBLE_INT_CONCAT_FN
(uint64)
143
144
OCTAVE_INT_FLOAT_CONCAT_FN
(int8)
145
OCTAVE_INT_FLOAT_CONCAT_FN
(int16)
146
OCTAVE_INT_FLOAT_CONCAT_FN
(int32)
147
OCTAVE_INT_FLOAT_CONCAT_FN
(int64)
148
149
OCTAVE_INT_FLOAT_CONCAT_FN
(uint8)
150
OCTAVE_INT_FLOAT_CONCAT_FN
(uint16)
151
OCTAVE_INT_FLOAT_CONCAT_FN
(uint32)
152
OCTAVE_INT_FLOAT_CONCAT_FN
(uint64)
153
154
OCTAVE_FLOAT_INT_CONCAT_FN
(int8)
155
OCTAVE_FLOAT_INT_CONCAT_FN
(int16)
156
OCTAVE_FLOAT_INT_CONCAT_FN
(int32)
157
OCTAVE_FLOAT_INT_CONCAT_FN
(int64)
158
159
OCTAVE_FLOAT_INT_CONCAT_FN
(uint8)
160
OCTAVE_FLOAT_INT_CONCAT_FN
(uint16)
161
OCTAVE_FLOAT_INT_CONCAT_FN
(uint32)
162
OCTAVE_FLOAT_INT_CONCAT_FN
(uint64)
163
164
OCTAVE_INT_CHAR_CONCAT_FN
(int8)
165
OCTAVE_INT_CHAR_CONCAT_FN
(int16)
166
OCTAVE_INT_CHAR_CONCAT_FN
(int32)
167
OCTAVE_INT_CHAR_CONCAT_FN
(int64)
168
169
OCTAVE_INT_CHAR_CONCAT_FN
(uint8)
170
OCTAVE_INT_CHAR_CONCAT_FN
(uint16)
171
OCTAVE_INT_CHAR_CONCAT_FN
(uint32)
172
OCTAVE_INT_CHAR_CONCAT_FN
(uint64)
173
174
OCTAVE_CHAR_INT_CONCAT_FN
(int8)
175
OCTAVE_CHAR_INT_CONCAT_FN
(int16)
176
OCTAVE_CHAR_INT_CONCAT_FN
(int32)
177
OCTAVE_CHAR_INT_CONCAT_FN
(int64)
178
179
OCTAVE_CHAR_INT_CONCAT_FN
(uint8)
180
OCTAVE_CHAR_INT_CONCAT_FN
(uint16)
181
OCTAVE_CHAR_INT_CONCAT_FN
(uint32)
182
OCTAVE_CHAR_INT_CONCAT_FN
(uint64)
183
184
void
185
install_int_concat_ops
(
void
)
186
{
187
OCTAVE_INSTALL_CONCAT_FN2
(int8, int16);
188
OCTAVE_INSTALL_CONCAT_FN2
(int8, int32);
189
OCTAVE_INSTALL_CONCAT_FN2
(int8, int64);
190
191
OCTAVE_INSTALL_CONCAT_FN2
(int8, uint8);
192
OCTAVE_INSTALL_CONCAT_FN2
(int8, uint16);
193
OCTAVE_INSTALL_CONCAT_FN2
(int8, uint32);
194
OCTAVE_INSTALL_CONCAT_FN2
(int8, uint64);
195
196
OCTAVE_INSTALL_CONCAT_FN2
(int16, int8);
197
OCTAVE_INSTALL_CONCAT_FN2
(int16, int32);
198
OCTAVE_INSTALL_CONCAT_FN2
(int16, int64);
199
200
OCTAVE_INSTALL_CONCAT_FN2
(int16, uint8);
201
OCTAVE_INSTALL_CONCAT_FN2
(int16, uint16);
202
OCTAVE_INSTALL_CONCAT_FN2
(int16, uint32);
203
OCTAVE_INSTALL_CONCAT_FN2
(int16, uint64);
204
205
OCTAVE_INSTALL_CONCAT_FN2
(int32, int8);
206
OCTAVE_INSTALL_CONCAT_FN2
(int32, int16);
207
OCTAVE_INSTALL_CONCAT_FN2
(int32, int64);
208
209
OCTAVE_INSTALL_CONCAT_FN2
(int32, uint8);
210
OCTAVE_INSTALL_CONCAT_FN2
(int32, uint16);
211
OCTAVE_INSTALL_CONCAT_FN2
(int32, uint32);
212
OCTAVE_INSTALL_CONCAT_FN2
(int32, uint64);
213
214
OCTAVE_INSTALL_CONCAT_FN2
(int64, int8);
215
OCTAVE_INSTALL_CONCAT_FN2
(int64, int16);
216
OCTAVE_INSTALL_CONCAT_FN2
(int64, int32);
217
218
OCTAVE_INSTALL_CONCAT_FN2
(int64, uint8);
219
OCTAVE_INSTALL_CONCAT_FN2
(int64, uint16);
220
OCTAVE_INSTALL_CONCAT_FN2
(int64, uint32);
221
OCTAVE_INSTALL_CONCAT_FN2
(int64, uint64);
222
223
OCTAVE_INSTALL_CONCAT_FN2
(uint8, int8);
224
OCTAVE_INSTALL_CONCAT_FN2
(uint8, int16);
225
OCTAVE_INSTALL_CONCAT_FN2
(uint8, int32);
226
OCTAVE_INSTALL_CONCAT_FN2
(uint8, int64);
227
228
OCTAVE_INSTALL_CONCAT_FN2
(uint8, uint16);
229
OCTAVE_INSTALL_CONCAT_FN2
(uint8, uint32);
230
OCTAVE_INSTALL_CONCAT_FN2
(uint8, uint64);
231
232
OCTAVE_INSTALL_CONCAT_FN2
(uint16, int8);
233
OCTAVE_INSTALL_CONCAT_FN2
(uint16, int16);
234
OCTAVE_INSTALL_CONCAT_FN2
(uint16, int32);
235
OCTAVE_INSTALL_CONCAT_FN2
(uint16, int64);
236
237
OCTAVE_INSTALL_CONCAT_FN2
(uint16, uint8);
238
OCTAVE_INSTALL_CONCAT_FN2
(uint16, uint32);
239
OCTAVE_INSTALL_CONCAT_FN2
(uint16, uint64);
240
241
OCTAVE_INSTALL_CONCAT_FN2
(uint32, int8);
242
OCTAVE_INSTALL_CONCAT_FN2
(uint32, int16);
243
OCTAVE_INSTALL_CONCAT_FN2
(uint32, int32);
244
OCTAVE_INSTALL_CONCAT_FN2
(uint32, int64);
245
246
OCTAVE_INSTALL_CONCAT_FN2
(uint32, uint8);
247
OCTAVE_INSTALL_CONCAT_FN2
(uint32, uint16);
248
OCTAVE_INSTALL_CONCAT_FN2
(uint32, uint64);
249
250
OCTAVE_INSTALL_CONCAT_FN2
(uint64, int8);
251
OCTAVE_INSTALL_CONCAT_FN2
(uint64, int16);
252
OCTAVE_INSTALL_CONCAT_FN2
(uint64, int32);
253
OCTAVE_INSTALL_CONCAT_FN2
(uint64, int64);
254
255
OCTAVE_INSTALL_CONCAT_FN2
(uint64, uint8);
256
OCTAVE_INSTALL_CONCAT_FN2
(uint64, uint16);
257
OCTAVE_INSTALL_CONCAT_FN2
(uint64, uint32);
258
259
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN
(int8);
260
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN
(int16);
261
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN
(int32);
262
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN
(int64);
263
264
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN
(uint8);
265
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN
(uint16);
266
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN
(uint32);
267
OCTAVE_INSTALL_INT_DOUBLE_CONCAT_FN
(uint64);
268
269
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN
(int8);
270
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN
(int16);
271
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN
(int32);
272
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN
(int64);
273
274
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN
(uint8);
275
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN
(uint16);
276
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN
(uint32);
277
OCTAVE_INSTALL_DOUBLE_INT_CONCAT_FN
(uint64);
278
279
OCTAVE_INSTALL_INT_FLOAT_CONCAT_FN
(int8);
280
OCTAVE_INSTALL_INT_FLOAT_CONCAT_FN
(int16);
281
OCTAVE_INSTALL_INT_FLOAT_CONCAT_FN
(int32);
282
OCTAVE_INSTALL_INT_FLOAT_CONCAT_FN
(int64);
283
284
OCTAVE_INSTALL_INT_FLOAT_CONCAT_FN
(uint8);
285
OCTAVE_INSTALL_INT_FLOAT_CONCAT_FN
(uint16);
286
OCTAVE_INSTALL_INT_FLOAT_CONCAT_FN
(uint32);
287
OCTAVE_INSTALL_INT_FLOAT_CONCAT_FN
(uint64);
288
289
OCTAVE_INSTALL_FLOAT_INT_CONCAT_FN
(int8);
290
OCTAVE_INSTALL_FLOAT_INT_CONCAT_FN
(int16);
291
OCTAVE_INSTALL_FLOAT_INT_CONCAT_FN
(int32);
292
OCTAVE_INSTALL_FLOAT_INT_CONCAT_FN
(int64);
293
294
OCTAVE_INSTALL_FLOAT_INT_CONCAT_FN
(uint8);
295
OCTAVE_INSTALL_FLOAT_INT_CONCAT_FN
(uint16);
296
OCTAVE_INSTALL_FLOAT_INT_CONCAT_FN
(uint32);
297
OCTAVE_INSTALL_FLOAT_INT_CONCAT_FN
(uint64);
298
299
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN
(int8);
300
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN
(int16);
301
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN
(int32);
302
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN
(int64);
303
304
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN
(uint8);
305
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN
(uint16);
306
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN
(uint32);
307
OCTAVE_INSTALL_INT_CHAR_CONCAT_FN
(uint64);
308
309
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN
(int8);
310
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN
(int16);
311
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN
(int32);
312
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN
(int64);
313
314
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN
(uint8);
315
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN
(uint16);
316
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN
(uint32);
317
OCTAVE_INSTALL_CHAR_INT_CONCAT_FN
(uint64);
318
}
Generated on Mon Dec 30 2013 03:04:36 for GNU Octave by
1.8.1.2