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