Mercurial > hg > octave-terminal
changeset 11881:32de72e0b179 release-3-0-x
Add scalar reshape method
author | David Bateman <dbateman@free.fr> |
---|---|
date | Tue, 04 Nov 2008 20:54:26 +0100 |
parents | 7b69c809e0d4 |
children | 7f07a6cc41ae |
files | src/ChangeLog src/ov-base-scalar.h |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -9348,6 +9348,11 @@ ov-range.h, ov-base-mat.h, (resize): New function. +2008-10-31 David Bateman <dbateman@free.fr> + + * ov-base-scalar.h (octave_value octave_base_scalar::reshape + (const dim_vector&) const): New method. + 2004-07-23 John W. Eaton <jwe@octave.org> * symtab.cc (whos_parameter): Move decl here, from symtab.h.
--- a/src/ov-base-scalar.h +++ b/src/ov-base-scalar.h @@ -87,6 +87,9 @@ octave_value permute (const Array<int>&, bool = false) const { return scalar; } + octave_value reshape (const dim_vector& new_dims) const + { return array_value ().reshape (new_dims); } + size_t byte_size (void) const { return sizeof (ST); } octave_value all (int = 0) const { return (scalar != ST ()); }