Mercurial > hg > octave-lyh
diff liboctave/dSparse.cc @ 10421:99e9bae2d81e
improve sparse indexing interface
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 18 Mar 2010 14:55:52 +0100 |
parents | 12884915a8e4 |
children | 5dd7a7bf4950 |
line wrap: on
line diff
--- a/liboctave/dSparse.cc +++ b/liboctave/dSparse.cc @@ -7599,24 +7599,18 @@ } SparseMatrix -SparseMatrix::index (idx_vector& i, int resize_ok) const +SparseMatrix::index (const idx_vector& i, bool resize_ok) const { return MSparse<double>::index (i, resize_ok); } SparseMatrix -SparseMatrix::index (idx_vector& i, idx_vector& j, int resize_ok) const +SparseMatrix::index (const idx_vector& i, const idx_vector& j, bool resize_ok) const { return MSparse<double>::index (i, j, resize_ok); } SparseMatrix -SparseMatrix::index (Array<idx_vector>& ra_idx, int resize_ok) const -{ - return MSparse<double>::index (ra_idx, resize_ok); -} - -SparseMatrix SparseMatrix::reshape (const dim_vector& new_dims) const { return MSparse<double>::reshape (new_dims);