Mercurial > hg > octave-nkf
diff libinterp/octave-value/ov-lazy-idx.h @ 20341:0d56160e346d
make printf of lazy-index object work again (bug #44864)
* ov-lazy-idx.h, ov-lazy-idx.cc
(octave_lazy_index::fast_elem_extract): New function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 25 Apr 2015 13:18:02 -0400 |
parents | 09ed6f7538dd |
children |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-lazy-idx.h +++ b/libinterp/octave-value/ov-lazy-idx.h @@ -53,6 +53,8 @@ octave_base_value *try_narrowing_conversion (void); + octave_value fast_elem_extract (octave_idx_type n) const; + size_t byte_size (void) const { return numel () * sizeof (octave_idx_type); } octave_value squeeze (void) const;