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	Fri Mar 21 13:20:11 2008 -0400
+++ b/liboctave/boolNDArray.cc	Fri Mar 21 00:08:24 2008 +0100
@@ -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, )