Mercurial > hg > octave-nkf
diff liboctave/Array.h @ 9546:1beb23d2b892
optimize op= in common cases
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 19 Aug 2009 13:47:59 +0200 |
parents | 9fd5c56ce57a |
children | 948795dc1974 |
line wrap: on
line diff
--- a/liboctave/Array.h +++ b/liboctave/Array.h @@ -238,6 +238,7 @@ Array<T>& operator = (const Array<T>& a); void fill (const T& val); + void clear (void); octave_idx_type capacity (void) const { return slice_len; } octave_idx_type length (void) const { return capacity (); } @@ -440,6 +441,8 @@ T *fortran_vec (void); + bool is_shared (void) { return rep->count > 1; } + int ndims (void) const { return dimensions.length (); } void maybe_delete_dims (void);