diff src/ov-base-mat.h @ 5602:dfa2da0563e5

[project @ 2006-01-31 03:43:40 by jwe]
author jwe
date Tue, 31 Jan 2006 03:43:41 +0000
parents 4c8a2e4e0717
children c7d5a534afa5
line wrap: on
line diff
--- a/src/ov-base-mat.h
+++ b/src/ov-base-mat.h
@@ -94,6 +94,8 @@
 
   dim_vector dims (void) const { return matrix.dims (); }
 
+  octave_idx_type nnz (void) const { return matrix.nnz (); }
+
   octave_value reshape (const dim_vector& new_dims) const
     { return MT (matrix.reshape (new_dims)); }