Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
10420:3373fdc0b14a | 10421:99e9bae2d81e |
---|---|
408 | 408 |
409 Matrix matrix_value (void) const; | 409 Matrix matrix_value (void) const; |
410 | 410 |
411 SparseMatrix squeeze (void) const; | 411 SparseMatrix squeeze (void) const; |
412 | 412 |
413 SparseMatrix index (idx_vector& i, int resize_ok) const; | 413 SparseMatrix index (const idx_vector& i, bool resize_ok) const; |
414 | 414 |
415 SparseMatrix index (idx_vector& i, idx_vector& j, int resize_ok) const; | 415 SparseMatrix index (const idx_vector& i, const idx_vector& j, bool resize_ok) const; |
416 | |
417 SparseMatrix index (Array<idx_vector>& ra_idx, int resize_ok) const; | |
418 | 416 |
419 SparseMatrix reshape (const dim_vector& new_dims) const; | 417 SparseMatrix reshape (const dim_vector& new_dims) const; |
420 | 418 |
421 SparseMatrix permute (const Array<octave_idx_type>& vec, bool inv = false) const; | 419 SparseMatrix permute (const Array<octave_idx_type>& vec, bool inv = false) const; |
422 | 420 |