Mercurial > hg > octave-lyh
diff liboctave/dSparse.h @ 10421:99e9bae2d81e
improve sparse indexing interface
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 18 Mar 2010 14:55:52 +0100 |
parents | cbc402e64d83 |
children | ded9beac7582 |
line wrap: on
line diff
--- a/liboctave/dSparse.h +++ b/liboctave/dSparse.h @@ -410,11 +410,9 @@ SparseMatrix squeeze (void) const; - SparseMatrix index (idx_vector& i, int resize_ok) const; + SparseMatrix index (const idx_vector& i, bool resize_ok) const; - SparseMatrix index (idx_vector& i, idx_vector& j, int resize_ok) const; - - SparseMatrix index (Array<idx_vector>& ra_idx, int resize_ok) const; + SparseMatrix index (const idx_vector& i, const idx_vector& j, bool resize_ok) const; SparseMatrix reshape (const dim_vector& new_dims) const;