Mercurial > hg > octave-nkf
diff liboctave/CSparse.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/CSparse.cc +++ b/liboctave/CSparse.cc @@ -7198,23 +7198,18 @@ } SparseComplexMatrix -SparseComplexMatrix::index (idx_vector& i, int resize_ok) const +SparseComplexMatrix::index (const idx_vector& i, bool resize_ok) const { return MSparse<Complex>::index (i, resize_ok); } SparseComplexMatrix -SparseComplexMatrix::index (idx_vector& i, idx_vector& j, int resize_ok) const +SparseComplexMatrix::index (const idx_vector& i, const idx_vector& j, bool resize_ok) const { return MSparse<Complex>::index (i, j, resize_ok); } SparseComplexMatrix -SparseComplexMatrix::index (Array<idx_vector>& ra_idx, int resize_ok) const -{ - return MSparse<Complex>::index (ra_idx, resize_ok); -} -SparseComplexMatrix SparseComplexMatrix::reshape (const dim_vector& new_dims) const { return MSparse<Complex>::reshape (new_dims);