diff src/ov-base-mat.h @ 10653:ec5fa46e0e45

override ndims and numel for scalars and matrices
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 25 May 2010 08:53:58 +0200
parents 9961fc022d9d
children 0f310fce905d
line wrap: on
line diff
--- a/src/ov-base-mat.h	Tue May 25 08:24:29 2010 +0200
+++ b/src/ov-base-mat.h	Tue May 25 08:53:58 2010 +0200
@@ -102,6 +102,8 @@
 
   octave_idx_type numel (void) const { return matrix.numel (); }
 
+  int ndims (void) const { return matrix.ndims (); }
+
   octave_idx_type nnz (void) const { return matrix.nnz (); }
 
   octave_value reshape (const dim_vector& new_dims) const