Mercurial > hg > octave-nkf
diff src/ov-base-scalar.h @ 10545:ffe28cdc6fe2
fix reshape() and permute() for scalars
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 23 Apr 2010 11:42:58 +0200 |
parents | 9961fc022d9d |
children | ec5fa46e0e45 |
line wrap: on
line diff
--- a/src/ov-base-scalar.h +++ b/src/ov-base-scalar.h @@ -80,11 +80,9 @@ octave_idx_type nnz (void) const { return (scalar != ST ()) ? 1 : 0; } - octave_value permute (const Array<int>&, bool = false) const - { return scalar; } + octave_value permute (const Array<int>&, bool = false) const; - octave_value reshape (const dim_vector& new_dims) const - { return array_value ().reshape (new_dims); } + octave_value reshape (const dim_vector& new_dims) const; size_t byte_size (void) const { return sizeof (ST); }