Mercurial > hg > octave-nkf
annotate src/oct-obj.cc @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | a83bad07f7e3 |
children | 826f008c829b |
rev | line source |
---|---|
517 | 1 /* |
2 | |
11523 | 3 Copyright (C) 1994-2011 John W. Eaton |
8580
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
4 Copyright (C) 2009 VZLU Prague |
517 | 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. | |
517 | 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/>. | |
517 | 21 |
22 */ | |
23 | |
24 #ifdef HAVE_CONFIG_H | |
1192 | 25 #include <config.h> |
517 | 26 #endif |
27 | |
1968 | 28 #include "error.h" |
1742 | 29 #include "oct-obj.h" |
8546
3d8a914c580e
improve parser indexed assigment code
Jaroslav Hajek <highegg@gmail.com>
parents:
8523
diff
changeset
|
30 #include "Cell.h" |
3d8a914c580e
improve parser indexed assigment code
Jaroslav Hajek <highegg@gmail.com>
parents:
8523
diff
changeset
|
31 |
8580
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
32 octave_value_list::octave_value_list (const std::list<octave_value_list>& lst) |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
33 { |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
34 octave_idx_type n = 0, nel = 0; |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
35 |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
36 // Determine number. |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
37 for (std::list<octave_value_list>::const_iterator p = lst.begin (); |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
38 p != lst.end (); p++) |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
39 { |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
40 n++; |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
41 nel += p->length (); |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
42 } |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
43 |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
44 // Optimize single-element case |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
45 if (n == 1) |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
46 data = lst.front ().data; |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
47 else if (nel > 0) |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
48 { |
11574
a83bad07f7e3
attempt better backward compatibility for Array resize functions
John W. Eaton <jwe@octave.org>
parents:
11568
diff
changeset
|
49 data.resize (dim_vector (1, nel)); |
8580
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
50 octave_idx_type k = 0; |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
51 for (std::list<octave_value_list>::const_iterator p = lst.begin (); |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
52 p != lst.end (); p++) |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
53 { |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
54 data.assign (idx_vector (k, k + p->length ()), p->data); |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
55 k += p->length (); |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
56 } |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
57 assert (k == nel); |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
58 } |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
59 |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
60 } |
188d38a553c7
further indexing optimization touches
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
61 |
2970 | 62 octave_allocator |
63 octave_value_list::allocator (sizeof (octave_value_list)); | |
64 | |
2872 | 65 octave_value_list& |
66 octave_value_list::prepend (const octave_value& val) | |
67 { | |
5275 | 68 octave_idx_type n = length (); |
2872 | 69 |
70 resize (n + 1); | |
71 | |
72 while (n > 0) | |
73 { | |
74 elem (n) = elem (n - 1); | |
75 n--; | |
76 } | |
77 | |
78 elem (0) = val; | |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11574
diff
changeset
|
79 |
2872 | 80 return *this; |
81 } | |
82 | |
83 octave_value_list& | |
84 octave_value_list::append (const octave_value& val) | |
85 { | |
5275 | 86 octave_idx_type n = length (); |
2872 | 87 |
88 resize (n + 1); | |
89 | |
90 elem (n) = val; | |
91 | |
92 return *this; | |
93 } | |
94 | |
95 octave_value_list& | |
96 octave_value_list::append (const octave_value_list& lst) | |
97 { | |
5275 | 98 octave_idx_type len = length (); |
99 octave_idx_type lst_len = lst.length (); | |
2872 | 100 |
101 resize (len + lst_len); | |
102 | |
5275 | 103 for (octave_idx_type i = 0; i < lst_len; i++) |
2872 | 104 elem (len + i) = lst (i); |
105 | |
106 return *this; | |
107 } | |
108 | |
109 octave_value_list& | |
110 octave_value_list::reverse (void) | |
111 { | |
5275 | 112 octave_idx_type n = length (); |
2872 | 113 |
5275 | 114 for (octave_idx_type i = 0; i < n / 2; i++) |
2872 | 115 { |
116 octave_value tmp = elem (i); | |
117 elem (i) = elem (n - i - 1); | |
118 elem (n - i - 1) = tmp; | |
119 } | |
120 | |
121 return *this; | |
122 } | |
123 | |
3195 | 124 octave_value_list |
5275 | 125 octave_value_list::splice (octave_idx_type offset, octave_idx_type rep_length, |
10315
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
126 const octave_value_list& lst) const |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11574
diff
changeset
|
127 { |
3195 | 128 octave_value_list retval; |
129 | |
5275 | 130 octave_idx_type len = length (); |
3195 | 131 |
132 if (offset < 0 || offset >= len) | |
133 { | |
3219 | 134 if (! (rep_length == 0 && offset == len)) |
10315
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
135 { |
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
136 error ("octave_value_list::splice: invalid OFFSET"); |
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
137 return retval; |
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
138 } |
3195 | 139 } |
140 | |
141 if (rep_length < 0 || rep_length + offset > len) | |
142 { | |
143 error ("octave_value_list::splice: invalid LENGTH"); | |
144 return retval; | |
145 } | |
146 | |
5275 | 147 octave_idx_type lst_len = lst.length (); |
3195 | 148 |
5275 | 149 octave_idx_type new_len = len - rep_length + lst_len; |
3195 | 150 |
151 retval.resize (new_len); | |
152 | |
5275 | 153 octave_idx_type k = 0; |
3195 | 154 |
5275 | 155 for (octave_idx_type i = 0; i < offset; i++) |
3195 | 156 retval(k++) = elem (i); |
157 | |
5275 | 158 for (octave_idx_type i = 0; i < lst_len; i++) |
3195 | 159 retval(k++) = lst(i); |
160 | |
5275 | 161 for (octave_idx_type i = offset + rep_length; i < len; i++) |
3195 | 162 retval(k++) = elem (i); |
163 | |
164 return retval; | |
165 } | |
166 | |
2872 | 167 bool |
168 octave_value_list::all_strings_p (void) const | |
1968 | 169 { |
5275 | 170 octave_idx_type n = length (); |
517 | 171 |
5275 | 172 for (octave_idx_type i = 0; i < n; i++) |
1968 | 173 if (! elem(i).is_string ()) |
5846 | 174 return false; |
175 | |
176 return true; | |
177 } | |
1746 | 178 |
5846 | 179 bool |
8455
fd11a08a9b31
disallow invalid {}-indexed assigments
Jaroslav Hajek <highegg@gmail.com>
parents:
8437
diff
changeset
|
180 octave_value_list::all_scalars (void) const |
fd11a08a9b31
disallow invalid {}-indexed assigments
Jaroslav Hajek <highegg@gmail.com>
parents:
8437
diff
changeset
|
181 { |
11568
de5fba8337c5
octave_value_list::all_scalars: test for scalars, not strings
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
182 octave_idx_type n = length (); |
8455
fd11a08a9b31
disallow invalid {}-indexed assigments
Jaroslav Hajek <highegg@gmail.com>
parents:
8437
diff
changeset
|
183 |
11568
de5fba8337c5
octave_value_list::all_scalars: test for scalars, not strings
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
184 for (octave_idx_type i = 0; i < n; i++) |
de5fba8337c5
octave_value_list::all_scalars: test for scalars, not strings
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
185 { |
de5fba8337c5
octave_value_list::all_scalars: test for scalars, not strings
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
186 dim_vector dv = elem(i).dims (); |
de5fba8337c5
octave_value_list::all_scalars: test for scalars, not strings
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
187 if (! dv.all_ones ()) |
de5fba8337c5
octave_value_list::all_scalars: test for scalars, not strings
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
188 return false; |
de5fba8337c5
octave_value_list::all_scalars: test for scalars, not strings
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
189 } |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11574
diff
changeset
|
190 |
11568
de5fba8337c5
octave_value_list::all_scalars: test for scalars, not strings
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
191 return true; |
8455
fd11a08a9b31
disallow invalid {}-indexed assigments
Jaroslav Hajek <highegg@gmail.com>
parents:
8437
diff
changeset
|
192 } |
fd11a08a9b31
disallow invalid {}-indexed assigments
Jaroslav Hajek <highegg@gmail.com>
parents:
8437
diff
changeset
|
193 |
fd11a08a9b31
disallow invalid {}-indexed assigments
Jaroslav Hajek <highegg@gmail.com>
parents:
8437
diff
changeset
|
194 bool |
10086
76df75b10c80
allow more cells in strfind/strrep + supply a general mechanism
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
195 octave_value_list::any_cell (void) const |
76df75b10c80
allow more cells in strfind/strrep + supply a general mechanism
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
196 { |
76df75b10c80
allow more cells in strfind/strrep + supply a general mechanism
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
197 octave_idx_type n = length (); |
76df75b10c80
allow more cells in strfind/strrep + supply a general mechanism
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
198 |
76df75b10c80
allow more cells in strfind/strrep + supply a general mechanism
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
199 for (octave_idx_type i = 0; i < n; i++) |
10099
29959c705df2
avoid assignment in condition of if statement
John W. Eaton <jwe@octave.org>
parents:
10086
diff
changeset
|
200 if (elem (i).is_cell ()) |
29959c705df2
avoid assignment in condition of if statement
John W. Eaton <jwe@octave.org>
parents:
10086
diff
changeset
|
201 return true; |
29959c705df2
avoid assignment in condition of if statement
John W. Eaton <jwe@octave.org>
parents:
10086
diff
changeset
|
202 |
29959c705df2
avoid assignment in condition of if statement
John W. Eaton <jwe@octave.org>
parents:
10086
diff
changeset
|
203 return false; |
10086
76df75b10c80
allow more cells in strfind/strrep + supply a general mechanism
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
204 } |
76df75b10c80
allow more cells in strfind/strrep + supply a general mechanism
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
205 |
76df75b10c80
allow more cells in strfind/strrep + supply a general mechanism
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
206 bool |
5846 | 207 octave_value_list::has_magic_colon (void) const |
208 { | |
209 octave_idx_type n = length (); | |
210 | |
211 for (octave_idx_type i = 0; i < n; i++) | |
212 if (elem(i).is_magic_colon ()) | |
213 return true; | |
214 | |
215 return false; | |
517 | 216 } |
217 | |
1968 | 218 string_vector |
3523 | 219 octave_value_list::make_argv (const std::string& fcn_name) const |
517 | 220 { |
1968 | 221 string_vector argv; |
222 | |
2872 | 223 if (all_strings_p ()) |
1968 | 224 { |
5275 | 225 octave_idx_type len = length (); |
3180 | 226 |
5275 | 227 octave_idx_type total_nr = 0; |
3180 | 228 |
5275 | 229 for (octave_idx_type i = 0; i < len; i++) |
10315
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
230 { |
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
231 // An empty std::string ("") has zero columns and zero rows (a |
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
232 // change that was made for Matlab contemptibility. |
3264 | 233 |
10315
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
234 octave_idx_type n = elem(i).rows (); |
3264 | 235 |
10315
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
236 total_nr += n ? n : 1; |
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
237 } |
3180 | 238 |
8034
f61bd8e0d682
fix default_save_options parsing and allow mixing options with other arguments.
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
239 octave_idx_type k = 0; |
f61bd8e0d682
fix default_save_options parsing and allow mixing options with other arguments.
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
240 if (! fcn_name.empty ()) |
f61bd8e0d682
fix default_save_options parsing and allow mixing options with other arguments.
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
241 { |
f61bd8e0d682
fix default_save_options parsing and allow mixing options with other arguments.
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
242 argv.resize (total_nr+1); |
f61bd8e0d682
fix default_save_options parsing and allow mixing options with other arguments.
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
243 argv[0] = fcn_name; |
f61bd8e0d682
fix default_save_options parsing and allow mixing options with other arguments.
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
244 k = 1; |
f61bd8e0d682
fix default_save_options parsing and allow mixing options with other arguments.
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
245 } |
f61bd8e0d682
fix default_save_options parsing and allow mixing options with other arguments.
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
246 else |
f61bd8e0d682
fix default_save_options parsing and allow mixing options with other arguments.
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
247 argv.resize (total_nr); |
3180 | 248 |
5275 | 249 for (octave_idx_type i = 0; i < len; i++) |
10315
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
250 { |
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
251 octave_idx_type nr = elem(i).rows (); |
3180 | 252 |
10315
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
253 if (nr < 2) |
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
254 argv[k++] = elem(i).string_value (); |
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
255 else |
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
256 { |
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
257 string_vector tmp = elem(i).all_strings (); |
3180 | 258 |
10315
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
259 for (octave_idx_type j = 0; j < nr; j++) |
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
260 argv[k++] = tmp[j]; |
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
261 } |
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
262 } |
1968 | 263 } |
264 else | |
265 error ("%s: expecting all arguments to be strings", fcn_name.c_str ()); | |
517 | 266 |
1968 | 267 return argv; |
517 | 268 } |
269 | |
8150
283989f2da9b
make null assignment matlab compatible
Jaroslav Hajek <highegg@gmail.com>
parents:
8034
diff
changeset
|
270 void |
8523
ad3afaaa19c1
implement non-copying contiguous range indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
8455
diff
changeset
|
271 octave_value_list::make_storable_values (void) |
8150
283989f2da9b
make null assignment matlab compatible
Jaroslav Hajek <highegg@gmail.com>
parents:
8034
diff
changeset
|
272 { |
283989f2da9b
make null assignment matlab compatible
Jaroslav Hajek <highegg@gmail.com>
parents:
8034
diff
changeset
|
273 octave_idx_type len = length (); |
8579
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8546
diff
changeset
|
274 const Array<octave_value>& cdata = data; |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8546
diff
changeset
|
275 |
8150
283989f2da9b
make null assignment matlab compatible
Jaroslav Hajek <highegg@gmail.com>
parents:
8034
diff
changeset
|
276 for (octave_idx_type i = 0; i < len; i++) |
8579
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8546
diff
changeset
|
277 { |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8546
diff
changeset
|
278 // This is optimized so that we don't force a copy unless necessary. |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8546
diff
changeset
|
279 octave_value tmp = cdata(i).storable_value (); |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8546
diff
changeset
|
280 if (! tmp.is_copy_of (cdata (i))) |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8546
diff
changeset
|
281 data(i) = tmp; |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8546
diff
changeset
|
282 } |
8150
283989f2da9b
make null assignment matlab compatible
Jaroslav Hajek <highegg@gmail.com>
parents:
8034
diff
changeset
|
283 } |