Mercurial > hg > octave-nkf
diff src/Cell.cc @ 8175:977d5204cf67
fix null assignment for structs
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 02 Oct 2008 22:50:44 +0200 |
parents | 85184151822e |
children | 6c08e3921d3e |
line wrap: on
line diff
--- a/src/Cell.cc +++ b/src/Cell.cc @@ -172,6 +172,19 @@ return *this; } +Cell& +Cell::delete_elements (const octave_value_list& idx_arg) + +{ + Array<idx_vector> ra_idx (idx_arg.length ()); + for (octave_idx_type i = 0; i < idx_arg.length (); i++) + ra_idx.xelem (i) = idx_arg(i).index_vector (); + + maybe_delete_elements (ra_idx, octave_value ()); + + return *this; +} + octave_idx_type Cell::nnz (void) const {