diff liboctave/idx-vector.h @ 9725:aea3a3a950e1

implement nth_element
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 14 Oct 2009 13:23:31 +0200
parents a9b37bae1802
children 01f897d8a130
line wrap: on
line diff
--- a/liboctave/idx-vector.h
+++ b/liboctave/idx-vector.h
@@ -796,6 +796,10 @@
   bool is_cont_range (octave_idx_type n,
                       octave_idx_type& l, octave_idx_type& u) const;
 
+  // Returns the increment for ranges and colon, 0 for scalars and empty
+  // vectors, 1st difference otherwise.
+  octave_idx_type increment (void) const;
+
   idx_vector
   complement (octave_idx_type n) const;