Mercurial > hg > octave-lyh
annotate src/ov-range.h @ 10313:f3b65e1ae355
untabify src header files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 11 Feb 2010 12:16:43 -0500 |
parents | cd96d29c5efa |
children | 1834132fb50b |
rev | line source |
---|---|
2376 | 1 /* |
2 | |
7017 | 3 Copyright (C) 1996, 1997, 1998, 2000, 2002, 2003, 2004, 2005, 2006, |
8920 | 4 2007, 2008, 2009 John W. Eaton |
2376 | 5 |
6 This file is part of Octave. | |
7 | |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
7016 | 10 Free Software Foundation; either version 3 of the License, or (at your |
11 option) any later version. | |
2376 | 12 |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
7016 | 19 along with Octave; see the file COPYING. If not, see |
20 <http://www.gnu.org/licenses/>. | |
2376 | 21 |
22 */ | |
23 | |
24 #if !defined (octave_range_h) | |
25 #define octave_range_h 1 | |
26 | |
27 #include <cstdlib> | |
28 | |
8950
d865363208d6
include <iosfwd> instead of <iostream> in header files
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
29 #include <iosfwd> |
2376 | 30 #include <string> |
31 | |
32 #include "Range.h" | |
33 | |
2889 | 34 #include "lo-mappers.h" |
2376 | 35 #include "lo-utils.h" |
36 #include "mx-base.h" | |
2477 | 37 #include "oct-alloc.h" |
2376 | 38 #include "str-vec.h" |
39 | |
40 #include "error.h" | |
5051 | 41 #include "oct-stream.h" |
2376 | 42 #include "ov-base.h" |
6127 | 43 #include "ov-re-mat.h" |
2376 | 44 #include "ov-typeinfo.h" |
45 | |
46 class Octave_map; | |
47 class octave_value_list; | |
48 | |
49 class tree_walker; | |
50 | |
51 // Range values. | |
52 | |
53 class | |
54 octave_range : public octave_base_value | |
55 { | |
56 public: | |
57 | |
58 octave_range (void) | |
9350
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
59 : octave_base_value (), idx_cache () { } |
2376 | 60 |
61 octave_range (double base, double limit, double inc) | |
9350
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
62 : octave_base_value (), range (base, limit, inc), idx_cache () |
2376 | 63 { |
10313 | 64 if (range.nelem () < 0) |
65 ::error ("invalid range"); | |
2376 | 66 } |
67 | |
68 octave_range (const Range& r) | |
9350
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
69 : octave_base_value (), range (r), idx_cache () |
2376 | 70 { |
10313 | 71 if (range.nelem () < 0 && range.nelem () != -2) |
72 ::error ("invalid range"); | |
2376 | 73 } |
74 | |
75 octave_range (const octave_range& r) | |
9350
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
76 : octave_base_value (), range (r.range), |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
77 idx_cache (r.idx_cache ? new idx_vector (*r.idx_cache) : 0) |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
78 { } |
2376 | 79 |
9479
d9716e3ee0dd
supply optimized compiled sub2ind & ind2sub
Jaroslav Hajek <highegg@gmail.com>
parents:
9350
diff
changeset
|
80 octave_range (const Range& r, const idx_vector& cache) |
d9716e3ee0dd
supply optimized compiled sub2ind & ind2sub
Jaroslav Hajek <highegg@gmail.com>
parents:
9350
diff
changeset
|
81 : octave_base_value (), range (r), idx_cache () |
d9716e3ee0dd
supply optimized compiled sub2ind & ind2sub
Jaroslav Hajek <highegg@gmail.com>
parents:
9350
diff
changeset
|
82 { |
d9716e3ee0dd
supply optimized compiled sub2ind & ind2sub
Jaroslav Hajek <highegg@gmail.com>
parents:
9350
diff
changeset
|
83 set_idx_cache (cache); |
d9716e3ee0dd
supply optimized compiled sub2ind & ind2sub
Jaroslav Hajek <highegg@gmail.com>
parents:
9350
diff
changeset
|
84 } |
d9716e3ee0dd
supply optimized compiled sub2ind & ind2sub
Jaroslav Hajek <highegg@gmail.com>
parents:
9350
diff
changeset
|
85 |
9350
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
86 ~octave_range (void) { clear_cached_info (); } |
2376 | 87 |
5759 | 88 octave_base_value *clone (void) const { return new octave_range (*this); } |
6127 | 89 |
90 // A range is really just a special kind of real matrix object. In | |
91 // the places where we need to call empty_clone, it makes more sense | |
92 // to create an empty matrix (0x0) instead of an empty range (1x0). | |
93 octave_base_value *empty_clone (void) const { return new octave_matrix (); } | |
2376 | 94 |
8345
c777f3ce02d8
smarter conversion lookup
Jaroslav Hajek <highegg@gmail.com>
parents:
7922
diff
changeset
|
95 type_conv_info numeric_conversion_function (void) const; |
2410 | 96 |
5759 | 97 octave_base_value *try_narrowing_conversion (void); |
2376 | 98 |
4247 | 99 octave_value subsref (const std::string& type, |
10313 | 100 const std::list<octave_value_list>& idx); |
3933 | 101 |
7651
443a8f5a50fd
require both subsref variants to be defined in octave_value subclasses
John W. Eaton <jwe@octave.org>
parents:
7638
diff
changeset
|
102 octave_value_list subsref (const std::string& type, |
10313 | 103 const std::list<octave_value_list>& idx, int) |
7651
443a8f5a50fd
require both subsref variants to be defined in octave_value subclasses
John W. Eaton <jwe@octave.org>
parents:
7638
diff
changeset
|
104 { return subsref (type, idx); } |
4271 | 105 |
5885 | 106 octave_value do_index_op (const octave_value_list& idx, |
10313 | 107 bool resize_ok = false); |
2436 | 108 |
9350
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
109 idx_vector index_vector (void) const |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
110 { return idx_cache ? *idx_cache : set_idx_cache (idx_vector (range)); } |
2376 | 111 |
4563 | 112 dim_vector dims (void) const |
5275 | 113 { |
114 octave_idx_type n = range.nelem (); | |
4563 | 115 return dim_vector (n > 0, n); |
116 } | |
3195 | 117 |
5731 | 118 octave_value resize (const dim_vector& dv, bool fill = false) const; |
119 | |
4915 | 120 |
4792 | 121 size_t byte_size (void) const { return 3 * sizeof (double); } |
4791 | 122 |
4627 | 123 octave_value reshape (const dim_vector& new_dims) const |
4901 | 124 { return NDArray (array_value().reshape (new_dims)); } |
4627 | 125 |
5434 | 126 octave_value permute (const Array<int>& vec, bool inv = false) const |
127 { return NDArray (array_value().permute (vec, inv)); } | |
128 | |
6999 | 129 octave_value squeeze (void) const { return range; } |
130 | |
8458
d254a21e0120
reimplement full as method of octave_base_value
Jaroslav Hajek <highegg@gmail.com>
parents:
8437
diff
changeset
|
131 octave_value full_value (void) const { return range.matrix_value (); } |
d254a21e0120
reimplement full as method of octave_base_value
Jaroslav Hajek <highegg@gmail.com>
parents:
8437
diff
changeset
|
132 |
2376 | 133 bool is_defined (void) const { return true; } |
134 | |
2974 | 135 bool is_constant (void) const { return true; } |
136 | |
2376 | 137 bool is_range (void) const { return true; } |
138 | |
4017 | 139 octave_value all (int dim = 0) const; |
140 | |
141 octave_value any (int dim = 0) const; | |
2376 | 142 |
8366
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8345
diff
changeset
|
143 octave_value diag (octave_idx_type k = 0) const; |
7620
36594d5bbe13
Move diag function into the octave_value class
David Bateman <dbateman@free.fr>
parents:
7576
diff
changeset
|
144 |
7463
2467639bd8c0
eliminate UNDEFINED sort mode
John W. Eaton <jwe@octave.org>
parents:
7458
diff
changeset
|
145 octave_value sort (octave_idx_type dim = 0, sortmode mode = ASCENDING) const |
7458 | 146 { return range.sort (dim, mode); } |
147 | |
148 octave_value sort (Array<octave_idx_type>& sidx, octave_idx_type dim = 0, | |
10313 | 149 sortmode mode = ASCENDING) const |
7458 | 150 { return range.sort (sidx, dim, mode); } |
151 | |
8734
767ed8cc6634
rename internal issorted and issorted_rows functions to is_sorted and is_sorted_rows
John W. Eaton <jwe@octave.org>
parents:
8733
diff
changeset
|
152 sortmode is_sorted (sortmode mode = UNSORTED) const |
8721
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8458
diff
changeset
|
153 { return range.is_sorted (mode); } |
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8458
diff
changeset
|
154 |
8733
3ef774603887
rename all uses of sortrows_idx to sort_rows_idx
John W. Eaton <jwe@octave.org>
parents:
8721
diff
changeset
|
155 Array<octave_idx_type> sort_rows_idx (sortmode) const |
8721
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8458
diff
changeset
|
156 { return Array<octave_idx_type> (1, 0); } |
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8458
diff
changeset
|
157 |
8734
767ed8cc6634
rename internal issorted and issorted_rows functions to is_sorted and is_sorted_rows
John W. Eaton <jwe@octave.org>
parents:
8733
diff
changeset
|
158 sortmode is_sorted_rows (sortmode mode = UNSORTED) const |
8721
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8458
diff
changeset
|
159 { return mode ? mode : ASCENDING; } |
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8458
diff
changeset
|
160 |
9685 | 161 builtin_type_t builtin_type (void) const { return btyp_double; } |
162 | |
2376 | 163 bool is_real_type (void) const { return true; } |
164 | |
5895 | 165 bool is_double_type (void) const { return true; } |
166 | |
7576 | 167 bool is_float_type (void) const { return true; } |
168 | |
3678 | 169 bool is_numeric_type (void) const { return true; } |
170 | |
2376 | 171 bool is_true (void) const; |
172 | |
3145 | 173 double double_value (bool = false) const; |
2376 | 174 |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
175 float float_value (bool = false) const; |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
176 |
3145 | 177 double scalar_value (bool frc_str_conv = false) const |
178 { return double_value (frc_str_conv); } | |
2916 | 179 |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
180 float float_scalar_value (bool frc_str_conv = false) const |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
181 { return float_value (frc_str_conv); } |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
182 |
3145 | 183 Matrix matrix_value (bool = false) const |
2376 | 184 { return range.matrix_value (); } |
185 | |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
186 FloatMatrix float_matrix_value (bool = false) const |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
187 { return range.matrix_value (); } |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
188 |
4668 | 189 NDArray array_value (bool = false) const |
190 { return range.matrix_value (); } | |
191 | |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
192 FloatNDArray float_array_value (bool = false) const |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
193 { return FloatMatrix (range.matrix_value ()); } |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
194 |
9146
a48c500e48e1
support range->string conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8971
diff
changeset
|
195 charNDArray char_array_value (bool = false) const; |
a48c500e48e1
support range->string conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8971
diff
changeset
|
196 |
6934 | 197 // FIXME -- it would be better to have Range::intXNDArray_value |
198 // functions to avoid the intermediate conversion to a matrix | |
199 // object. | |
200 | |
6932 | 201 int8NDArray |
202 int8_array_value (void) const { return int8NDArray (array_value ()); } | |
203 | |
204 int16NDArray | |
205 int16_array_value (void) const { return int16NDArray (array_value ()); } | |
206 | |
207 int32NDArray | |
208 int32_array_value (void) const { return int32NDArray (array_value ()); } | |
209 | |
210 int64NDArray | |
211 int64_array_value (void) const { return int64NDArray (array_value ()); } | |
212 | |
213 uint8NDArray | |
214 uint8_array_value (void) const { return uint8NDArray (array_value ()); } | |
215 | |
216 uint16NDArray | |
217 uint16_array_value (void) const { return uint16NDArray (array_value ()); } | |
218 | |
219 uint32NDArray | |
220 uint32_array_value (void) const { return uint32NDArray (array_value ()); } | |
221 | |
222 uint64NDArray | |
223 uint64_array_value (void) const { return uint64NDArray (array_value ()); } | |
224 | |
6928 | 225 SparseMatrix sparse_matrix_value (bool = false) const |
226 { return SparseMatrix (range.matrix_value ()); } | |
227 | |
228 SparseComplexMatrix sparse_complex_matrix_value (bool = false) const | |
229 { return SparseComplexMatrix (sparse_matrix_value ()); } | |
230 | |
3145 | 231 Complex complex_value (bool = false) const; |
2376 | 232 |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
233 FloatComplex float_complex_value (bool = false) const; |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
234 |
5943 | 235 boolNDArray bool_array_value (bool warn = false) const |
236 { | |
237 Matrix m = range.matrix_value (); | |
238 | |
7922
935be827eaf8
error for NaN values in & and | expressions
John W. Eaton <jwe@octave.org>
parents:
7789
diff
changeset
|
239 if (m.any_element_is_nan ()) |
935be827eaf8
error for NaN values in & and | expressions
John W. Eaton <jwe@octave.org>
parents:
7789
diff
changeset
|
240 error ("invalid conversion from NaN to logical"); |
935be827eaf8
error for NaN values in & and | expressions
John W. Eaton <jwe@octave.org>
parents:
7789
diff
changeset
|
241 else if (warn && m.any_element_not_one_or_zero ()) |
5943 | 242 gripe_logical_conversion (); |
243 | |
244 return boolNDArray (m); | |
245 } | |
5898 | 246 |
3145 | 247 ComplexMatrix complex_matrix_value (bool = false) const |
3587 | 248 { return ComplexMatrix (range.matrix_value ()); } |
2376 | 249 |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
250 FloatComplexMatrix float_complex_matrix_value (bool = false) const |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
251 { return FloatComplexMatrix (range.matrix_value ()); } |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
252 |
4668 | 253 ComplexNDArray complex_array_value (bool = false) const |
254 { return ComplexMatrix (range.matrix_value ()); } | |
255 | |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
256 FloatComplexNDArray float_complex_array_value (bool = false) const |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
257 { return FloatComplexMatrix (range.matrix_value ()); } |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
258 |
2376 | 259 Range range_value (void) const { return range; } |
260 | |
5279 | 261 octave_value convert_to_str_internal (bool pad, bool force, char type) const; |
2449 | 262 |
3523 | 263 void print (std::ostream& os, bool pr_as_read_syntax = false) const; |
2901 | 264 |
3523 | 265 void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const; |
2901 | 266 |
3523 | 267 bool print_name_tag (std::ostream& os, const std::string& name) const; |
2376 | 268 |
6974 | 269 bool save_ascii (std::ostream& os); |
4687 | 270 |
271 bool load_ascii (std::istream& is); | |
272 | |
273 bool save_binary (std::ostream& os, bool& save_as_floats); | |
274 | |
275 bool load_binary (std::istream& is, bool swap, | |
10313 | 276 oct_mach_info::float_format fmt); |
4687 | 277 |
278 #if defined (HAVE_HDF5) | |
279 bool save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats); | |
280 | |
9881
b3089dba88bf
Remove HDF5 cruft for older versions of HDF5
Kacper Kowalik
parents:
9812
diff
changeset
|
281 bool load_hdf5 (hid_t loc_id, const char *name); |
4687 | 282 #endif |
283 | |
5051 | 284 int write (octave_stream& os, int block_size, |
10313 | 285 oct_data_conv::data_type output_type, int skip, |
286 oct_mach_info::float_format flt_fmt) const | |
5051 | 287 { |
5775 | 288 // FIXME -- could be more memory efficient by having a |
5051 | 289 // special case of the octave_stream::write method for ranges. |
290 | |
291 return os.write (matrix_value (), block_size, output_type, skip, | |
10313 | 292 flt_fmt); |
5051 | 293 } |
294 | |
5900 | 295 mxArray *as_mxArray (void) const; |
296 | |
9812
f80c566bc751
improve unary mapper system
Jaroslav Hajek <highegg@gmail.com>
parents:
9685
diff
changeset
|
297 octave_value map (unary_mapper_t umap) const |
f80c566bc751
improve unary mapper system
Jaroslav Hajek <highegg@gmail.com>
parents:
9685
diff
changeset
|
298 { |
f80c566bc751
improve unary mapper system
Jaroslav Hajek <highegg@gmail.com>
parents:
9685
diff
changeset
|
299 octave_matrix m (matrix_value ()); |
f80c566bc751
improve unary mapper system
Jaroslav Hajek <highegg@gmail.com>
parents:
9685
diff
changeset
|
300 return m.map (umap); |
7503
8c32f95c2639
convert mapper functions to new format
David Bateman <dbateman@free.fr>
parents:
7463
diff
changeset
|
301 } |
8c32f95c2639
convert mapper functions to new format
David Bateman <dbateman@free.fr>
parents:
7463
diff
changeset
|
302 |
2376 | 303 private: |
304 | |
305 Range range; | |
306 | |
9350
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
307 idx_vector set_idx_cache (const idx_vector& idx) const |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
308 { |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
309 delete idx_cache; |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
310 idx_cache = idx ? new idx_vector (idx) : 0; |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
311 return idx; |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
312 } |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
313 |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
314 void clear_cached_info (void) const |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
315 { |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
316 delete idx_cache; idx_cache = 0; |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
317 } |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
318 |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
319 mutable idx_vector *idx_cache; |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
320 |
4612 | 321 DECLARE_OCTAVE_ALLOCATOR |
2477 | 322 |
4612 | 323 DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
2376 | 324 }; |
325 | |
326 #endif |