Mercurial > hg > octave-terminal
changeset 5434:c2428a4b7d56
[project @ 2005-08-30 19:29:49 by jwe]
author | jwe |
---|---|
date | Tue, 30 Aug 2005 19:29:50 +0000 |
parents | 2f51d6d65fb2 |
children | 66ad03c58880 |
files | src/ChangeLog src/ov-range.h |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2005-08-30 John W. Eaton <jwe@octave.org> + * ov-range.h (octave_range::permute): New function. + * ov-struct.cc (octave_struct::load_ascii, octave_struct::load_binary, octave_struct::load_hdf5): Try harder to read old-style files correctly.
--- a/src/ov-range.h +++ b/src/ov-range.h @@ -114,6 +114,9 @@ octave_value reshape (const dim_vector& new_dims) const { return NDArray (array_value().reshape (new_dims)); } + octave_value permute (const Array<int>& vec, bool inv = false) const + { return NDArray (array_value().permute (vec, inv)); } + bool is_defined (void) const { return true; } bool is_constant (void) const { return true; }