Mercurial > hg > octave-nkf
diff 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 |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/lookup.cc +++ b/src/DLD-FUNCTIONS/lookup.cc @@ -227,10 +227,10 @@ // (though it's not too meaningful). if (table.is_complex_type ()) - table = table.abs (); + table = table.map (umap_abs); if (y.is_complex_type ()) - y = y.abs (); + y = y.map (umap_abs); Array<octave_idx_type> idx;