diff liboctave/MArray.h @ 8934:c2099a4d12ea

partially optimize accumarray
author Jaroslav Hajek <highegg@gmail.com>
date Mon, 09 Mar 2009 10:59:19 +0100
parents eb63fbe60fab
children 66970dd627f6
line wrap: on
line diff
--- a/liboctave/MArray.h	Sun Mar 08 19:18:44 2009 +0100
+++ b/liboctave/MArray.h	Mon Mar 09 10:59:19 2009 +0100
@@ -92,6 +92,12 @@
     return Array<T>::template map<U> (fcn);
   }
 
+  // Performs indexed accumulative addition.
+
+  void idx_add (const idx_vector& idx, T val);
+
+  void idx_add (const idx_vector& idx, const MArray<T>& vals);
+
   // Currently, the OPS functions don't need to be friends, but that
   // may change.