Mercurial > octave-nkf
diff src/ov.cc @ 9351:e2344f4af0cb
autocache indices returned from find et al.
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Mon, 15 Jun 2009 12:52:53 +0200 |
parents | 67fc970dad7d |
children | ff612fdaee95 |
line wrap: on
line diff
--- a/src/ov.cc Mon Jun 15 10:40:10 2009 +0200 +++ b/src/ov.cc Mon Jun 15 12:52:53 2009 +0200 @@ -974,6 +974,13 @@ maybe_mutate (); } +octave_value::octave_value (const Array<octave_idx_type>& inda, bool zero_based, + bool cache_index) + : rep (new octave_matrix (inda, zero_based, cache_index)) +{ + maybe_mutate (); +} + octave_value::octave_value (double base, double limit, double inc) : rep (new octave_range (base, limit, inc)) {