comparison liboctave/boolSparse.cc @ 10421:99e9bae2d81e

improve sparse indexing interface
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 18 Mar 2010 14:55:52 +0100
parents 07ebe522dac2
children bdf5d85cfc5e
comparison
equal deleted inserted replaced
10420:3373fdc0b14a 10421:99e9bae2d81e
190 { 190 {
191 return Sparse<bool>::squeeze (); 191 return Sparse<bool>::squeeze ();
192 } 192 }
193 193
194 SparseBoolMatrix 194 SparseBoolMatrix
195 SparseBoolMatrix::index (idx_vector& i, int resize_ok) const 195 SparseBoolMatrix::index (const idx_vector& i, bool resize_ok) const
196 { 196 {
197 return Sparse<bool>::index (i, resize_ok); 197 return Sparse<bool>::index (i, resize_ok);
198 } 198 }
199 199
200 SparseBoolMatrix 200 SparseBoolMatrix
201 SparseBoolMatrix::index (idx_vector& i, idx_vector& j, int resize_ok) const 201 SparseBoolMatrix::index (const idx_vector& i, const idx_vector& j, bool resize_ok) const
202 { 202 {
203 return Sparse<bool>::index (i, j, resize_ok); 203 return Sparse<bool>::index (i, j, resize_ok);
204 } 204 }
205 205
206 SparseBoolMatrix 206 SparseBoolMatrix
207 SparseBoolMatrix::index (Array<idx_vector>& ra_idx, int resize_ok) const
208 {
209 return Sparse<bool>::index (ra_idx, resize_ok);
210 }
211
212 SparseBoolMatrix
213 SparseBoolMatrix::reshape (const dim_vector& new_dims) const 207 SparseBoolMatrix::reshape (const dim_vector& new_dims) const
214 { 208 {
215 return Sparse<bool>::reshape (new_dims); 209 return Sparse<bool>::reshape (new_dims);
216 } 210 }
217 211