diff liboctave/Range.h @ 7620:36594d5bbe13

Move diag function into the octave_value class
author David Bateman <dbateman@free.fr>
date Fri, 21 Mar 2008 00:08:24 +0100
parents 2467639bd8c0
children c7ff200e45f5
line wrap: on
line diff
--- a/liboctave/Range.h
+++ b/liboctave/Range.h
@@ -65,6 +65,8 @@
   void sort_internal (bool ascending = true);
   void sort_internal (Array<octave_idx_type>& sidx, bool ascending = true);
 
+  Matrix diag (octave_idx_type k = 0) const;
+
   Range sort (octave_idx_type dim = 0, sortmode mode = ASCENDING) const;
 
   Range sort (Array<octave_idx_type>& sidx, octave_idx_type dim = 0,