Mercurial > hg > octave-nkf
comparison src/DLD-FUNCTIONS/lookup.cc @ 9812:f80c566bc751
improve unary mapper system
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 12 Nov 2009 15:47:58 +0100 |
parents | b4fdfee405b5 |
children | 8fa32b527d9a |
comparison
equal
deleted
inserted
replaced
9811:c657c056240d | 9812:f80c566bc751 |
---|---|
225 | 225 |
226 // In the case of a complex array, absolute values will be used for compatibility | 226 // In the case of a complex array, absolute values will be used for compatibility |
227 // (though it's not too meaningful). | 227 // (though it's not too meaningful). |
228 | 228 |
229 if (table.is_complex_type ()) | 229 if (table.is_complex_type ()) |
230 table = table.abs (); | 230 table = table.map (umap_abs); |
231 | 231 |
232 if (y.is_complex_type ()) | 232 if (y.is_complex_type ()) |
233 y = y.abs (); | 233 y = y.map (umap_abs); |
234 | 234 |
235 Array<octave_idx_type> idx; | 235 Array<octave_idx_type> idx; |
236 | 236 |
237 // PS: I learned this from data.cc | 237 // PS: I learned this from data.cc |
238 if INT_ARRAY_LOOKUP (int8) | 238 if INT_ARRAY_LOOKUP (int8) |