diff liboctave/Sparse.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 7bfaa9611558
children ff918ee1a983
line wrap: on
line diff
--- a/liboctave/Sparse.h	Fri Mar 21 13:20:11 2008 -0400
+++ b/liboctave/Sparse.h	Fri Mar 21 00:08:24 2008 +0100
@@ -522,6 +522,8 @@
   Sparse<T> sort (Array<octave_idx_type> &sidx, octave_idx_type dim = 0,
 		 sortmode mode = ASCENDING) const;
 
+  Sparse<T> diag (octave_idx_type k = 0) const;
+
   template <class U, class F>
   Sparse<U>
   map (F fcn) const