comparison liboctave/ChangeLog @ 10425:0677c5d80b77

rewrite 1D sparse indexing
author Jaroslav Hajek <highegg@gmail.com>
date Fri, 19 Mar 2010 13:00:06 +0100
parents 99e9bae2d81e
children 5dd7a7bf4950
comparison
equal deleted inserted replaced
10424:0b05b204775b 10425:0677c5d80b77
1 2010-03-19 Jaroslav Hajek <highegg@gmail.com>
2
3 * Array-util.cc (gripe_invalid_resize): Move here from Array.cc.
4 * Array-util.h: Declare it.
5 * Array.cc: Use it.
6
7 * idx-vector.cc (idx_vector::idx_mask_rep::unconvert): Fix non-owned
8 case.
9 (idx_vector::idx_mask_rep::as_array): New method.
10 * idx-vector.h: Declare it.
11
12 * Sparse.cc (Sparse<T>::index (const idx_vector&, bool)): Rewrite.
13 (Sparse<T>::array_value): New method.
14 (Sparse<T>::resize1): New method.
15 (Sparse<T>::resize): Move resize_no_fill bodies in here.
16 (Sparse<T>::resize_no_fill): Remove.
17 * Sparse.h: Update decls.
18
1 2010-03-18 Jaroslav Hajek <highegg@gmail.com> 19 2010-03-18 Jaroslav Hajek <highegg@gmail.com>
2 20
3 * Sparse.h (Sparse<T>::index): Use const references. Use bool for 21 * Sparse.h (Sparse<T>::index): Use const references. Use bool for
4 resize_ok. Remove Array<idx_vector> overload. 22 resize_ok. Remove Array<idx_vector> overload.
5 * MSparse.h (MSparse<T>::index): Ditto. 23 * MSparse.h (MSparse<T>::index): Ditto.