comparison 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
comparison
equal deleted inserted replaced
10652:2f0fbfa4dd23 10653:ec5fa46e0e45
100 100
101 dim_vector dims (void) const { return matrix.dims (); } 101 dim_vector dims (void) const { return matrix.dims (); }
102 102
103 octave_idx_type numel (void) const { return matrix.numel (); } 103 octave_idx_type numel (void) const { return matrix.numel (); }
104 104
105 int ndims (void) const { return matrix.ndims (); }
106
105 octave_idx_type nnz (void) const { return matrix.nnz (); } 107 octave_idx_type nnz (void) const { return matrix.nnz (); }
106 108
107 octave_value reshape (const dim_vector& new_dims) const 109 octave_value reshape (const dim_vector& new_dims) const
108 { return MT (matrix.reshape (new_dims)); } 110 { return MT (matrix.reshape (new_dims)); }
109 111