Mercurial > octave-nkf
diff liboctave/CNDArray.cc @ 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 | 24abf5a702d9 |
children | 82be108cc558 |
line wrap: on
line diff
--- a/liboctave/CNDArray.cc Fri Mar 21 13:20:11 2008 -0400 +++ b/liboctave/CNDArray.cc Fri Mar 21 00:08:24 2008 +0100 @@ -991,6 +991,12 @@ return ::compute_index (ra_idx, dimensions); } +ComplexNDArray +ComplexNDArray::diag (octave_idx_type k) const +{ + return MArrayN<Complex>::diag (k); +} + NDArray ComplexNDArray::map (dmapper fcn) const {