Mercurial > octave-dspies
comparison liboctave/util/module.mk @ 19010:3fb030666878 draft default tip dspies
Added special-case logical-indexing function
* logical-index.h (New file) : Logical-indexing function. May be called on
octave_value types via call_bool_index
* nz-iterators.h : Add base-class nz_iterator for iterator types. Array has
template bool for whether to internally store row-col or compute on the fly
Add skip_ahead method which skips forward to the next nonzero after its
argument
Add flat_index for computing octave_idx_type index of current position (with
assertion failure in the case of overflow)
Move is_zero to separate file
* ov-base-diag.cc, ov-base-mat.cc, ov-base-sparse.cc, ov-perm.cc
(do_index_op): Add call to call_bool_index in logical-index.h
* Array.h : Move forward-declaration for array_iterator to separate header file
* dim-vector.cc (dim_max): Refers to idx-bounds.h (max_idx)
* array-iter-decl.h (New file): Header file for forward declaration of
array-iterator
* direction.h : Add constants fdirc and bdirc to avoid having to reconstruct
them
* dv-utils.h, dv-utils.cc (New files) :
Utility functions for querying and constructing dim-vectors
* idx-bounds.h (New file) :
Utility constants and functions for determining whether things will overflow
the maximum allowed bounds
* interp-idx.h (New function : to_flat_idx) : Converts row-col pair to linear
index of octave_idx_type
* is-zero.h (New file) : Function for determining whether an element is zero
* logical-index.tst : Add tests for correct return-value dimensions and large
sparse matrix behavior
author | David Spies <dnspies@gmail.com> |
---|---|
date | Fri, 25 Jul 2014 13:39:31 -0600 |
parents | 2e0613dadfee |
children |
comparison
equal
deleted
inserted
replaced
19009:8d47ce2053f2 | 19010:3fb030666878 |
---|---|
1 EXTRA_DIST += \ | 1 EXTRA_DIST += \ |
2 util/module.mk | 2 util/module.mk |
3 | 3 |
4 UTIL_INC = \ | 4 UTIL_INC = \ |
5 util/action-container.h \ | 5 util/action-container.h \ |
6 util/array-iter-decl.h \ | |
6 util/base-list.h \ | 7 util/base-list.h \ |
7 util/byte-swap.h \ | 8 util/byte-swap.h \ |
8 util/caseless-str.h \ | 9 util/caseless-str.h \ |
9 util/cmd-edit.h \ | 10 util/cmd-edit.h \ |
10 util/cmd-hist.h \ | 11 util/cmd-hist.h \ |
11 util/data-conv.h \ | 12 util/data-conv.h \ |
12 util/direction.h \ | 13 util/direction.h \ |
14 util/dv-utils.h \ | |
13 util/find.h \ | 15 util/find.h \ |
14 util/functor.h \ | 16 util/functor.h \ |
15 util/glob-match.h \ | 17 util/glob-match.h \ |
18 util/idx-bounds.h \ | |
16 util/interp-idx.h \ | 19 util/interp-idx.h \ |
20 util/is-zero.h \ | |
17 util/lo-array-gripes.h \ | 21 util/lo-array-gripes.h \ |
18 util/lo-cutils.h \ | 22 util/lo-cutils.h \ |
23 util/logical-index.h \ | |
19 util/lo-ieee.h \ | 24 util/lo-ieee.h \ |
20 util/lo-macros.h \ | 25 util/lo-macros.h \ |
21 util/lo-math.h \ | 26 util/lo-math.h \ |
22 util/lo-traits.h \ | 27 util/lo-traits.h \ |
23 util/lo-utils.h \ | 28 util/lo-utils.h \ |
58 | 63 |
59 UTIL_SRC = \ | 64 UTIL_SRC = \ |
60 util/cmd-edit.cc \ | 65 util/cmd-edit.cc \ |
61 util/cmd-hist.cc \ | 66 util/cmd-hist.cc \ |
62 util/data-conv.cc \ | 67 util/data-conv.cc \ |
68 util/dv-utils.cc \ | |
63 util/glob-match.cc \ | 69 util/glob-match.cc \ |
64 util/lo-array-gripes.cc \ | 70 util/lo-array-gripes.cc \ |
65 util/lo-ieee.cc \ | 71 util/lo-ieee.cc \ |
66 util/lo-utils.cc \ | 72 util/lo-utils.cc \ |
67 util/oct-alloc.cc \ | 73 util/oct-alloc.cc \ |