Mercurial > hg > octave-lyh
diff liboctave/boolNDArray.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 | a018c140f8aa |
children | 1bd918cfb6e2 |
line wrap: on
line diff
--- a/liboctave/boolNDArray.cc +++ b/liboctave/boolNDArray.cc @@ -129,6 +129,12 @@ return ::compute_index (ra_idx, dimensions); } +boolNDArray +boolNDArray::diag (octave_idx_type k) const +{ + return ArrayN<bool>::diag (k); +} + NDND_BOOL_OPS (boolNDArray, boolNDArray, false) NDND_CMP_OPS (boolNDArray, , boolNDArray, )