diff liboctave/CMatrix.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 0bade2dc44a1
children 36594d5bbe13
line wrap: on
line diff
--- a/liboctave/CMatrix.h
+++ b/liboctave/CMatrix.h
@@ -311,11 +311,13 @@
 
   // other operations
 
-  ComplexMatrix map (c_c_Mapper f) const;
-  Matrix map (d_c_Mapper f) const;
-  boolMatrix map (b_c_Mapper f) const;
+  typedef double (*dmapper) (const Complex&);
+  typedef Complex (*cmapper) (const Complex&);
+  typedef bool (*bmapper) (const Complex&);
 
-  ComplexMatrix& apply (c_c_Mapper f);
+  Matrix map (dmapper fcn) const;
+  ComplexMatrix map (cmapper fcn) const;
+  boolMatrix map (bmapper fcn) const;
 
   bool any_element_is_inf_or_nan (void) const;
   bool all_elements_are_real (void) const;