diff libinterp/octave-value/ov-base.h @ 16804:617a6e5a974a

Partially undo the changeset 8fce0ed4894a as sparse specialized version of is_empty can be used in all cases.
author David Bateman <dbateman@free.fr>
date Sat, 22 Jun 2013 15:13:53 +0200
parents 8fce0ed4894a
children d63878346099
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base.h	Sat Jun 22 12:00:39 2013 +0200
+++ b/libinterp/octave-value/ov-base.h	Sat Jun 22 15:13:53 2013 +0200
@@ -331,7 +331,7 @@
 
   virtual bool is_defined (void) const { return false; }
 
-  virtual bool is_empty (void) const { return numel () == 0; }
+  bool is_empty (void) const { return (dims ().any_zero ()); }
 
   virtual bool is_cell (void) const { return false; }