Mercurial > octave-nkf
comparison liboctave/idx-vector.h @ 10512:aac9f4265048
rewrite sparse indexed assignment
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 13 Apr 2010 12:36:21 +0200 |
parents | d47802f0e557 |
children | f0266ee4aabe |
comparison
equal
deleted
inserted
replaced
10511:153e6226a669 | 10512:aac9f4265048 |
---|---|
983 idx_vector | 983 idx_vector |
984 complement (octave_idx_type n) const; | 984 complement (octave_idx_type n) const; |
985 | 985 |
986 bool is_permutation (octave_idx_type n) const; | 986 bool is_permutation (octave_idx_type n) const; |
987 | 987 |
988 // Returns the inverse permutation. If this is not a permutation on 1:n, the | |
989 // result is undefined (but no error unless extent () != n). | |
990 idx_vector inverse_permutation (octave_idx_type n) const; | |
991 | |
988 // Copies all the indices to a given array. Not allowed for colons. | 992 // Copies all the indices to a given array. Not allowed for colons. |
989 void copy_data (octave_idx_type *data) const; | 993 void copy_data (octave_idx_type *data) const; |
990 | 994 |
991 // If the index is a mask, convert it to index vector. | 995 // If the index is a mask, convert it to index vector. |
992 idx_vector unmask (void) const; | 996 idx_vector unmask (void) const; |