Mercurial > hg > octave-lyh
diff src/Cell.h @ 8679:280fae940bb0
optimize scalar indexing
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 05 Feb 2009 13:58:11 +0100 |
parents | 1dce30ab0e72 |
children | a669df7beb73 |
line wrap: on
line diff
--- a/src/Cell.h +++ b/src/Cell.h @@ -73,34 +73,10 @@ Cell index (const octave_value_list& idx, bool resize_ok = false) const; - Cell index (const idx_vector& i, bool resize_ok = 0, - const octave_value& rfv = resize_fill_value ()) const - { return Cell (ArrayN<octave_value>::index (i, resize_ok, rfv)); } - - Cell index (const idx_vector& i, idx_vector& j, bool resize_ok = 0, - const octave_value& rfv = resize_fill_value ()) const - { return Cell (ArrayN<octave_value>::index (i, j, resize_ok, rfv)); } - - Cell index (const Array<idx_vector>& ra_idx, bool resize_ok = 0, - const octave_value& rfv = resize_fill_value ()) const - { return Cell (ArrayN<octave_value>::index (ra_idx, resize_ok, rfv)); } - - // FIXME -- this seems necessary for - // octave_base_mat<Cell>::delete_elements to work, but I don't - // understand why. - void delete_elements (const Array<idx_vector>& ia) - { ArrayN<octave_value>::delete_elements (ia); } - Cell& delete_elements (const octave_value_list& idx); Cell& assign (const octave_value_list& idx, const Cell& rhs, - const octave_value& fill_val = octave_value ()); - - // FIXME -- this seems necessary for octave_base_mat<Cell>::assign - // to work, but I don't understand why. - void assign (const Array<idx_vector>& ia, const Array<octave_value>& rhs, - const octave_value& fill_val = octave_value ()) - { ArrayN<octave_value>::assign (ia, rhs, fill_val); } + const octave_value& fill_val = resize_fill_value ()); Cell reshape (const dim_vector& new_dims) const { return ArrayN<octave_value>::reshape (new_dims); }