Mercurial > hg > octave-lyh
comparison src/ov-range.h @ 7503:8c32f95c2639
convert mapper functions to new format
author | David Bateman <dbateman@free.fr> |
---|---|
date | Wed, 20 Feb 2008 04:22:50 -0500 |
parents | 2467639bd8c0 |
children | 7ebdc99a0bab |
comparison
equal
deleted
inserted
replaced
7502:2ce6b4258e96 | 7503:8c32f95c2639 |
---|---|
260 flt_fmt); | 260 flt_fmt); |
261 } | 261 } |
262 | 262 |
263 mxArray *as_mxArray (void) const; | 263 mxArray *as_mxArray (void) const; |
264 | 264 |
265 // Mapper functions are converted to double for treatment | |
266 #define RANGE_MAPPER(MAP) \ | |
267 octave_value MAP (void) const \ | |
268 { \ | |
269 octave_matrix m (array_value ()); \ | |
270 return m.MAP (); \ | |
271 } | |
272 | |
273 RANGE_MAPPER (abs) | |
274 RANGE_MAPPER (acos) | |
275 RANGE_MAPPER (acosh) | |
276 RANGE_MAPPER (angle) | |
277 RANGE_MAPPER (arg) | |
278 RANGE_MAPPER (asin) | |
279 RANGE_MAPPER (asinh) | |
280 RANGE_MAPPER (atan) | |
281 RANGE_MAPPER (atanh) | |
282 RANGE_MAPPER (ceil) | |
283 RANGE_MAPPER (conj) | |
284 RANGE_MAPPER (cos) | |
285 RANGE_MAPPER (cosh) | |
286 RANGE_MAPPER (erf) | |
287 RANGE_MAPPER (erfc) | |
288 RANGE_MAPPER (exp) | |
289 RANGE_MAPPER (finite) | |
290 RANGE_MAPPER (fix) | |
291 RANGE_MAPPER (floor) | |
292 RANGE_MAPPER (gamma) | |
293 RANGE_MAPPER (imag) | |
294 RANGE_MAPPER (isinf) | |
295 RANGE_MAPPER (isna) | |
296 RANGE_MAPPER (isnan) | |
297 RANGE_MAPPER (lgamma) | |
298 RANGE_MAPPER (log) | |
299 RANGE_MAPPER (log10) | |
300 RANGE_MAPPER (real) | |
301 RANGE_MAPPER (round) | |
302 RANGE_MAPPER (signum) | |
303 RANGE_MAPPER (sin) | |
304 RANGE_MAPPER (sinh) | |
305 RANGE_MAPPER (sqrt) | |
306 RANGE_MAPPER (tan) | |
307 RANGE_MAPPER (tanh) | |
308 | |
265 private: | 309 private: |
266 | 310 |
267 Range range; | 311 Range range; |
268 | 312 |
269 DECLARE_OCTAVE_ALLOCATOR | 313 DECLARE_OCTAVE_ALLOCATOR |