Mercurial > hg > octave-lyh
diff liboctave/Sparse.h @ 10421:99e9bae2d81e
improve sparse indexing interface
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 18 Mar 2010 14:55:52 +0100 |
parents | 1766c133674c |
children | 0677c5d80b77 |
line wrap: on
line diff
--- a/liboctave/Sparse.h +++ b/liboctave/Sparse.h @@ -495,11 +495,9 @@ Sparse<T> value (void); - Sparse<T> index (idx_vector& i, int resize_ok = 0) const; + Sparse<T> index (const idx_vector& i, bool resize_ok = false) const; - Sparse<T> index (idx_vector& i, idx_vector& j, int resize_ok = 0) const; - - Sparse<T> index (Array<idx_vector>& ra_idx, int resize_ok = 0) const; + Sparse<T> index (const idx_vector& i, const idx_vector& j, bool resize_ok = false) const; void print_info (std::ostream& os, const std::string& prefix) const;