Mercurial > hg > octave-nkf
annotate src/ov-range.h @ 11217:521373e25613
correctly parse {1 2 {3 4}}
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 09 Nov 2010 18:12:17 -0500 |
parents | d9e57045b9e1 |
children | fd0a3ac60b0e |
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_value_list; | |
47 | |
48 class tree_walker; | |
49 | |
50 // Range values. | |
51 | |
52 class | |
53 octave_range : public octave_base_value | |
54 { | |
55 public: | |
56 | |
57 octave_range (void) | |
9350
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
58 : octave_base_value (), idx_cache () { } |
2376 | 59 |
60 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
|
61 : octave_base_value (), range (base, limit, inc), idx_cache () |
2376 | 62 { |
10313 | 63 if (range.nelem () < 0) |
64 ::error ("invalid range"); | |
2376 | 65 } |
66 | |
67 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
|
68 : octave_base_value (), range (r), idx_cache () |
2376 | 69 { |
10313 | 70 if (range.nelem () < 0 && range.nelem () != -2) |
71 ::error ("invalid range"); | |
2376 | 72 } |
73 | |
74 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
|
75 : 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
|
76 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
|
77 { } |
2376 | 78 |
9479
d9716e3ee0dd
supply optimized compiled sub2ind & ind2sub
Jaroslav Hajek <highegg@gmail.com>
parents:
9350
diff
changeset
|
79 octave_range (const Range& r, const idx_vector& cache) |
d9716e3ee0dd
supply optimized compiled sub2ind & ind2sub
Jaroslav Hajek <highegg@gmail.com>
parents:
9350
diff
changeset
|
80 : octave_base_value (), range (r), idx_cache () |
d9716e3ee0dd
supply optimized compiled sub2ind & ind2sub
Jaroslav Hajek <highegg@gmail.com>
parents:
9350
diff
changeset
|
81 { |
d9716e3ee0dd
supply optimized compiled sub2ind & ind2sub
Jaroslav Hajek <highegg@gmail.com>
parents:
9350
diff
changeset
|
82 set_idx_cache (cache); |
d9716e3ee0dd
supply optimized compiled sub2ind & ind2sub
Jaroslav Hajek <highegg@gmail.com>
parents:
9350
diff
changeset
|
83 } |
d9716e3ee0dd
supply optimized compiled sub2ind & ind2sub
Jaroslav Hajek <highegg@gmail.com>
parents:
9350
diff
changeset
|
84 |
9350
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
85 ~octave_range (void) { clear_cached_info (); } |
2376 | 86 |
5759 | 87 octave_base_value *clone (void) const { return new octave_range (*this); } |
6127 | 88 |
89 // A range is really just a special kind of real matrix object. In | |
90 // the places where we need to call empty_clone, it makes more sense | |
91 // to create an empty matrix (0x0) instead of an empty range (1x0). | |
92 octave_base_value *empty_clone (void) const { return new octave_matrix (); } | |
2376 | 93 |
8345
c777f3ce02d8
smarter conversion lookup
Jaroslav Hajek <highegg@gmail.com>
parents:
7922
diff
changeset
|
94 type_conv_info numeric_conversion_function (void) const; |
2410 | 95 |
5759 | 96 octave_base_value *try_narrowing_conversion (void); |
2376 | 97 |
4247 | 98 octave_value subsref (const std::string& type, |
10313 | 99 const std::list<octave_value_list>& idx); |
3933 | 100 |
7651
443a8f5a50fd
require both subsref variants to be defined in octave_value subclasses
John W. Eaton <jwe@octave.org>
parents:
7638
diff
changeset
|
101 octave_value_list subsref (const std::string& type, |
10313 | 102 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
|
103 { return subsref (type, idx); } |
4271 | 104 |
5885 | 105 octave_value do_index_op (const octave_value_list& idx, |
10313 | 106 bool resize_ok = false); |
2436 | 107 |
10605
1834132fb50b
allow non-integer ranges as indices conditionally
John W. Eaton <jwe@octave.org>
parents:
10313
diff
changeset
|
108 idx_vector index_vector (void) const; |
2376 | 109 |
4563 | 110 dim_vector dims (void) const |
5275 | 111 { |
112 octave_idx_type n = range.nelem (); | |
4563 | 113 return dim_vector (n > 0, n); |
114 } | |
3195 | 115 |
5731 | 116 octave_value resize (const dim_vector& dv, bool fill = false) const; |
117 | |
4915 | 118 |
4792 | 119 size_t byte_size (void) const { return 3 * sizeof (double); } |
4791 | 120 |
4627 | 121 octave_value reshape (const dim_vector& new_dims) const |
4901 | 122 { return NDArray (array_value().reshape (new_dims)); } |
4627 | 123 |
5434 | 124 octave_value permute (const Array<int>& vec, bool inv = false) const |
125 { return NDArray (array_value().permute (vec, inv)); } | |
126 | |
6999 | 127 octave_value squeeze (void) const { return range; } |
128 | |
8458
d254a21e0120
reimplement full as method of octave_base_value
Jaroslav Hajek <highegg@gmail.com>
parents:
8437
diff
changeset
|
129 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
|
130 |
2376 | 131 bool is_defined (void) const { return true; } |
132 | |
2974 | 133 bool is_constant (void) const { return true; } |
134 | |
2376 | 135 bool is_range (void) const { return true; } |
136 | |
4017 | 137 octave_value all (int dim = 0) const; |
138 | |
139 octave_value any (int dim = 0) const; | |
2376 | 140 |
8366
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8345
diff
changeset
|
141 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
|
142 |
7463
2467639bd8c0
eliminate UNDEFINED sort mode
John W. Eaton <jwe@octave.org>
parents:
7458
diff
changeset
|
143 octave_value sort (octave_idx_type dim = 0, sortmode mode = ASCENDING) const |
7458 | 144 { return range.sort (dim, mode); } |
145 | |
146 octave_value sort (Array<octave_idx_type>& sidx, octave_idx_type dim = 0, | |
10313 | 147 sortmode mode = ASCENDING) const |
7458 | 148 { return range.sort (sidx, dim, mode); } |
149 | |
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
|
150 sortmode is_sorted (sortmode mode = UNSORTED) const |
8721
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8458
diff
changeset
|
151 { return range.is_sorted (mode); } |
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8458
diff
changeset
|
152 |
8733
3ef774603887
rename all uses of sortrows_idx to sort_rows_idx
John W. Eaton <jwe@octave.org>
parents:
8721
diff
changeset
|
153 Array<octave_idx_type> sort_rows_idx (sortmode) const |
8721
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8458
diff
changeset
|
154 { return Array<octave_idx_type> (1, 0); } |
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8458
diff
changeset
|
155 |
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
|
156 sortmode is_sorted_rows (sortmode mode = UNSORTED) const |
8721
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8458
diff
changeset
|
157 { return mode ? mode : ASCENDING; } |
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8458
diff
changeset
|
158 |
9685 | 159 builtin_type_t builtin_type (void) const { return btyp_double; } |
160 | |
2376 | 161 bool is_real_type (void) const { return true; } |
162 | |
5895 | 163 bool is_double_type (void) const { return true; } |
164 | |
7576 | 165 bool is_float_type (void) const { return true; } |
166 | |
3678 | 167 bool is_numeric_type (void) const { return true; } |
168 | |
2376 | 169 bool is_true (void) const; |
170 | |
3145 | 171 double double_value (bool = false) const; |
2376 | 172 |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
173 float float_value (bool = false) const; |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
174 |
3145 | 175 double scalar_value (bool frc_str_conv = false) const |
176 { return double_value (frc_str_conv); } | |
2916 | 177 |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
178 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
|
179 { return float_value (frc_str_conv); } |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
180 |
3145 | 181 Matrix matrix_value (bool = false) const |
2376 | 182 { return range.matrix_value (); } |
183 | |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
184 FloatMatrix float_matrix_value (bool = false) const |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
185 { return range.matrix_value (); } |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
186 |
4668 | 187 NDArray array_value (bool = false) const |
188 { return range.matrix_value (); } | |
189 | |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
190 FloatNDArray float_array_value (bool = false) const |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
191 { return FloatMatrix (range.matrix_value ()); } |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
192 |
9146
a48c500e48e1
support range->string conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8971
diff
changeset
|
193 charNDArray char_array_value (bool = false) const; |
a48c500e48e1
support range->string conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8971
diff
changeset
|
194 |
6934 | 195 // FIXME -- it would be better to have Range::intXNDArray_value |
196 // functions to avoid the intermediate conversion to a matrix | |
197 // object. | |
198 | |
6932 | 199 int8NDArray |
200 int8_array_value (void) const { return int8NDArray (array_value ()); } | |
201 | |
202 int16NDArray | |
203 int16_array_value (void) const { return int16NDArray (array_value ()); } | |
204 | |
205 int32NDArray | |
206 int32_array_value (void) const { return int32NDArray (array_value ()); } | |
207 | |
208 int64NDArray | |
209 int64_array_value (void) const { return int64NDArray (array_value ()); } | |
210 | |
211 uint8NDArray | |
212 uint8_array_value (void) const { return uint8NDArray (array_value ()); } | |
213 | |
214 uint16NDArray | |
215 uint16_array_value (void) const { return uint16NDArray (array_value ()); } | |
216 | |
217 uint32NDArray | |
218 uint32_array_value (void) const { return uint32NDArray (array_value ()); } | |
219 | |
220 uint64NDArray | |
221 uint64_array_value (void) const { return uint64NDArray (array_value ()); } | |
222 | |
6928 | 223 SparseMatrix sparse_matrix_value (bool = false) const |
224 { return SparseMatrix (range.matrix_value ()); } | |
225 | |
226 SparseComplexMatrix sparse_complex_matrix_value (bool = false) const | |
227 { return SparseComplexMatrix (sparse_matrix_value ()); } | |
228 | |
3145 | 229 Complex complex_value (bool = false) const; |
2376 | 230 |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
231 FloatComplex float_complex_value (bool = false) const; |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
232 |
10613
e103fb2182ce
use internal variable instead of warning state to control whether to allow non-integer ranges as indices
John W. Eaton <jwe@octave.org>
parents:
10605
diff
changeset
|
233 boolNDArray bool_array_value (bool warn = false) const; |
5898 | 234 |
3145 | 235 ComplexMatrix complex_matrix_value (bool = false) const |
3587 | 236 { return ComplexMatrix (range.matrix_value ()); } |
2376 | 237 |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
238 FloatComplexMatrix float_complex_matrix_value (bool = false) const |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
239 { return FloatComplexMatrix (range.matrix_value ()); } |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
240 |
4668 | 241 ComplexNDArray complex_array_value (bool = false) const |
242 { return ComplexMatrix (range.matrix_value ()); } | |
243 | |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
244 FloatComplexNDArray float_complex_array_value (bool = false) const |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
245 { return FloatComplexMatrix (range.matrix_value ()); } |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7740
diff
changeset
|
246 |
2376 | 247 Range range_value (void) const { return range; } |
248 | |
5279 | 249 octave_value convert_to_str_internal (bool pad, bool force, char type) const; |
2449 | 250 |
3523 | 251 void print (std::ostream& os, bool pr_as_read_syntax = false) const; |
2901 | 252 |
3523 | 253 void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const; |
2901 | 254 |
3523 | 255 bool print_name_tag (std::ostream& os, const std::string& name) const; |
2376 | 256 |
6974 | 257 bool save_ascii (std::ostream& os); |
4687 | 258 |
259 bool load_ascii (std::istream& is); | |
260 | |
261 bool save_binary (std::ostream& os, bool& save_as_floats); | |
262 | |
263 bool load_binary (std::istream& is, bool swap, | |
10313 | 264 oct_mach_info::float_format fmt); |
4687 | 265 |
266 #if defined (HAVE_HDF5) | |
267 bool save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats); | |
268 | |
9881
b3089dba88bf
Remove HDF5 cruft for older versions of HDF5
Kacper Kowalik
parents:
9812
diff
changeset
|
269 bool load_hdf5 (hid_t loc_id, const char *name); |
4687 | 270 #endif |
271 | |
5051 | 272 int write (octave_stream& os, int block_size, |
10313 | 273 oct_data_conv::data_type output_type, int skip, |
274 oct_mach_info::float_format flt_fmt) const | |
5051 | 275 { |
5775 | 276 // FIXME -- could be more memory efficient by having a |
5051 | 277 // special case of the octave_stream::write method for ranges. |
278 | |
279 return os.write (matrix_value (), block_size, output_type, skip, | |
10313 | 280 flt_fmt); |
5051 | 281 } |
282 | |
5900 | 283 mxArray *as_mxArray (void) const; |
284 | |
9812
f80c566bc751
improve unary mapper system
Jaroslav Hajek <highegg@gmail.com>
parents:
9685
diff
changeset
|
285 octave_value map (unary_mapper_t umap) const |
f80c566bc751
improve unary mapper system
Jaroslav Hajek <highegg@gmail.com>
parents:
9685
diff
changeset
|
286 { |
f80c566bc751
improve unary mapper system
Jaroslav Hajek <highegg@gmail.com>
parents:
9685
diff
changeset
|
287 octave_matrix m (matrix_value ()); |
f80c566bc751
improve unary mapper system
Jaroslav Hajek <highegg@gmail.com>
parents:
9685
diff
changeset
|
288 return m.map (umap); |
7503
8c32f95c2639
convert mapper functions to new format
David Bateman <dbateman@free.fr>
parents:
7463
diff
changeset
|
289 } |
8c32f95c2639
convert mapper functions to new format
David Bateman <dbateman@free.fr>
parents:
7463
diff
changeset
|
290 |
2376 | 291 private: |
292 | |
293 Range range; | |
294 | |
9350
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
295 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
|
296 { |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
297 delete idx_cache; |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
298 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
|
299 return idx; |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
300 } |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
301 |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
302 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
|
303 { |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
304 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
|
305 } |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
306 |
16a5f9e1fdb3
cache idx_vector result in matrices once used for indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
9146
diff
changeset
|
307 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
|
308 |
4612 | 309 DECLARE_OCTAVE_ALLOCATOR |
2477 | 310 |
4612 | 311 DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
2376 | 312 }; |
313 | |
10613
e103fb2182ce
use internal variable instead of warning state to control whether to allow non-integer ranges as indices
John W. Eaton <jwe@octave.org>
parents:
10605
diff
changeset
|
314 // If TRUE, allow ranges with non-integer elements as array indices. |
e103fb2182ce
use internal variable instead of warning state to control whether to allow non-integer ranges as indices
John W. Eaton <jwe@octave.org>
parents:
10605
diff
changeset
|
315 extern bool Vallow_noninteger_range_as_index; |
e103fb2182ce
use internal variable instead of warning state to control whether to allow non-integer ranges as indices
John W. Eaton <jwe@octave.org>
parents:
10605
diff
changeset
|
316 |
2376 | 317 #endif |