diff liboctave/MArray.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 a1dbe9d80eee
children 82be108cc558
line wrap: on
line diff
--- a/liboctave/MArray.h	Wed Feb 20 01:09:19 2008 -0500
+++ b/liboctave/MArray.h	Wed Feb 20 04:22:50 2008 -0500
@@ -82,6 +82,12 @@
 
   double norm (double p) const;
 
+  template <class U, class F>
+  MArray<U> map (F fcn) const
+  {
+    return Array<T>::template map<U> (fcn);
+  }
+
   // Currently, the OPS functions don't need to be friends, but that
   // may change.