Mercurial > hg > octave-lyh
annotate NEWS @ 8749:5a7494ee68a3
liboctave/cmd-edit.cc, src/input.cc: use fputs instead of fprintf
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 16 Feb 2009 01:41:06 -0500 |
parents | 86cfcf133a19 |
children | 59c0fde890a0 |
rev | line source |
---|---|
7990
86dae6e5b83c
Initial update of NEWS for 3.2 release
David Bateman <dbateman@free.fr>
parents:
7279
diff
changeset
|
1 Summary of important user-visible changes for version 3.2: |
5913 | 2 --------------------------------------------------------- |
2452 | 3 |
8737 | 4 ** Compatibility with Matlab graphics has been improved. |
6329 | 5 |
8070
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
6 The hggroup object and associated listener callback functions have |
8737 | 7 been added allowing the inclusion of group objects. Data sources |
8070
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
8 have been added to these group objects such that |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
9 |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
10 x = 0:0.1:10; |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
11 y = sin (x); |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
12 plot (x, y, "ydatasource", "y"); |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
13 for i = 1 : 100 |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
14 pause(0.1) |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
15 y = sin (x + 0.1 * i); |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
16 refreshdata(); |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
17 endfor |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
18 |
8737 | 19 works as expected. This capability has be used to introduce |
20 stem-series, bar-series, etc. objects for better Matlab | |
21 compatibility. | |
22 | |
23 ** New graphics functions: | |
24 | |
8747 | 25 addlistener diffuse ezsurfc plotmatrix |
26 addproperty ezcontour findall refresh | |
27 allchild ezcontourf gcbf refreshdata | |
28 available_backends ezmesh gcbo specular | |
29 backend ezmeshc ginput surfl | |
30 cla ezplot gtext waitforbuttonpress | |
31 clabel ezplot3 intwarning | |
32 comet ezpolar ishghandle | |
33 dellistener ezsurf linkprop | |
8070
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
34 |
8749
5a7494ee68a3
liboctave/cmd-edit.cc, src/input.cc: use fputs instead of fprintf
John W. Eaton <jwe@octave.org>
parents:
8747
diff
changeset
|
35 ** Improvements to the debugger. |
8070
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
36 |
8737 | 37 The interactive debugging features have been improved. Stopping |
38 on statements with dbstop should work correctly now. Stepping | |
39 into and over functions, and stepping one statement at a time | |
40 (with dbstep) now works. Moving up and down the call stack with | |
41 dbup and dbdown now works. The dbstack function is now available | |
42 to print the current function call stack. The new dbquit function | |
43 is available to exit the debugging mode. | |
44 | |
8749
5a7494ee68a3
liboctave/cmd-edit.cc, src/input.cc: use fputs instead of fprintf
John W. Eaton <jwe@octave.org>
parents:
8747
diff
changeset
|
45 ** Improved traceback error messages. |
5a7494ee68a3
liboctave/cmd-edit.cc, src/input.cc: use fputs instead of fprintf
John W. Eaton <jwe@octave.org>
parents:
8747
diff
changeset
|
46 |
5a7494ee68a3
liboctave/cmd-edit.cc, src/input.cc: use fputs instead of fprintf
John W. Eaton <jwe@octave.org>
parents:
8747
diff
changeset
|
47 Traceback error messages are much more concise and easier to |
5a7494ee68a3
liboctave/cmd-edit.cc, src/input.cc: use fputs instead of fprintf
John W. Eaton <jwe@octave.org>
parents:
8747
diff
changeset
|
48 understand. They now display information about the function call |
5a7494ee68a3
liboctave/cmd-edit.cc, src/input.cc: use fputs instead of fprintf
John W. Eaton <jwe@octave.org>
parents:
8747
diff
changeset
|
49 stack instead of the stack of all statements that were active at |
5a7494ee68a3
liboctave/cmd-edit.cc, src/input.cc: use fputs instead of fprintf
John W. Eaton <jwe@octave.org>
parents:
8747
diff
changeset
|
50 the point of the error. |
5a7494ee68a3
liboctave/cmd-edit.cc, src/input.cc: use fputs instead of fprintf
John W. Eaton <jwe@octave.org>
parents:
8747
diff
changeset
|
51 |
8737 | 52 ** New experimental OpenGL/FLTK based plotting system. |
53 | |
54 An experimental plotting system based on OpenGL and the FLTK | |
55 toolkit is now part of Octave. This backend is disabled by | |
56 default. You can switch to using it with the command | |
8070
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
57 |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
58 backend ("fltk") |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
59 |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
60 for all future figures or for a particular figure with the command |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
61 |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
62 backend (h, "fltk") |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
63 |
8737 | 64 where "h" is a valid figure handle. Please note that this backend |
65 does not yet support text objects. Obviously, this is a necessary | |
66 feature before it can be considered usable. We are looking for | |
67 volunteers to help implement this missing feature. | |
8070
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
68 |
8737 | 69 ** Functions providing direct access to gnuplot have been removed. |
70 | |
7990
86dae6e5b83c
Initial update of NEWS for 3.2 release
David Bateman <dbateman@free.fr>
parents:
7279
diff
changeset
|
71 The functions __gnuplot_plot__, __gnuplot_set__, __gnuplot_raw__, |
86dae6e5b83c
Initial update of NEWS for 3.2 release
David Bateman <dbateman@free.fr>
parents:
7279
diff
changeset
|
72 __gnuplot_show__, __gnuplot_replot__, __gnuplot_splot__, |
8737 | 73 __gnuplot_save_data__ and __gnuplot_send_inline_data__ have been |
74 removed from Octave. These function were incompatible with the | |
75 high level graphics handle code. | |
6329 | 76 |
8737 | 77 ** Improvements to fsolve. |
78 | |
79 The fsolve function now accepts an option structure argument (see | |
80 also the optimset function). The INFO values returned from fsolve | |
81 have changed to be compatible with Matlab's fsolve function. | |
8396 | 82 Additionally, fsolve is now able to solve overdetermined systems. |
8014
44d206ae68c9
improve fsolve compatibility
John W. Eaton <jwe@octave.org>
parents:
7990
diff
changeset
|
83 |
8737 | 84 ** Object Oriented Programming. |
8405
d79dfbff2f9d
document new norm features in NEWS
Jaroslav Hajek <highegg@gmail.com>
parents:
8396
diff
changeset
|
85 |
8737 | 86 Octave now includes OOP features and the user can create their own |
87 class objects and overloaded functions and operators. For | |
88 example, all methods of a class called "myclass" will be found in | |
89 a directory "@myclass" on the users path. The class specific | |
90 versions of functions and operators take precedence over the | |
91 generic versions of these functions. | |
92 | |
93 New functions related to OOP include | |
7189 | 94 |
8737 | 95 class inferiorto isobject loadobj methods superiorto |
96 | |
97 See the Octave manual for more details. | |
7038 | 98 |
8747 | 99 ** Parsing of Command-style Functions. |
100 | |
101 Octave now parses command-style functions without needing to first | |
102 declare them with "mark_as_command". The rules for recognizing a | |
103 command-style function calls are | |
104 | |
105 * A command must appear as the first word in a statement, | |
106 followed by a space. | |
107 | |
108 * The first character after the space must not be '=' or '(' | |
109 | |
110 * The next token after the space must not look like a binary | |
111 operator. | |
112 | |
113 These rules should be mostly compatible with the way Matlab parses | |
114 command-style function calls and allow users to define commands in | |
115 .m files without having to mark them as commands. | |
116 | |
117 Note that previous versions of Octave allowed expressions like | |
118 | |
119 x = load -text foo.dat | |
120 | |
121 but an expression like this will now generate a parse error. In | |
122 order to assign the value returned by a function to a variable, | |
123 you must use the normal function call syntax: | |
124 | |
125 x = load ("-text", "foo.dat"); | |
126 | |
8737 | 127 ** Block comments. |
128 | |
8747 | 129 Commented code can be between matching "#{" and "#}" or "%{" and |
130 "%}" markers, even if the commented code spans several line. This | |
131 allows blocks code to be commented, without needing to comment | |
132 each line. For example, | |
5814 | 133 |
8747 | 134 function [s, t] = func (x, y) |
135 s = 2 * x; | |
136 #{ | |
137 s *= y; | |
138 t = y + x; | |
139 #} | |
7990
86dae6e5b83c
Initial update of NEWS for 3.2 release
David Bateman <dbateman@free.fr>
parents:
7279
diff
changeset
|
140 endfunction |
5814 | 141 |
8747 | 142 the lines "s *= y;" and "t = y + x" will not be executed. |
8737 | 143 |
144 ** The Control, Finance and Quaternion functions have been removed. | |
145 | |
146 These functions are now available as separate packages from | |
147 | |
148 http://octave.sourceforge.net/packages.html | |
2452 | 149 |
8737 | 150 and can be reinstalled using the Octave package manager (see |
151 the pkg function). | |
152 | |
153 ** Special treatment in the parser of expressions like "a' * b". | |
2452 | 154 |
8737 | 155 In these cases the transpose is no longer explicitly formed and |
156 BLAS libraries are called with the transpose flagged, | |
157 significantly improving performance for these kinds of | |
158 operations. | |
8417
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8405
diff
changeset
|
159 |
8737 | 160 ** Single Precision data type. |
2452 | 161 |
8737 | 162 Octave now includes a single precision data type. Single |
163 precision variables can be created with the "single" command, or | |
164 from function like ones, etc. For example | |
5995 | 165 |
8737 | 166 single (1) |
167 ones (2, 2, "single") | |
168 zeros (2, 2, "single") | |
169 eye (2, 2, "single") | |
170 Inf (2, 2, "single") | |
171 NaN (2, 2, "single") | |
172 NA (2, 2, "single") | |
7279 | 173 |
8737 | 174 all create single precision variables. For compatibility with |
175 Matlab, mixed double/single precision operators and functions | |
176 return single precision types. | |
177 | |
178 As a consequence of this addition to Octave the internal | |
7990
86dae6e5b83c
Initial update of NEWS for 3.2 release
David Bateman <dbateman@free.fr>
parents:
7279
diff
changeset
|
179 representation of the double precision NA value has changed, and |
86dae6e5b83c
Initial update of NEWS for 3.2 release
David Bateman <dbateman@free.fr>
parents:
7279
diff
changeset
|
180 so users that make use of data generated by Octave with R or |
86dae6e5b83c
Initial update of NEWS for 3.2 release
David Bateman <dbateman@free.fr>
parents:
7279
diff
changeset
|
181 visa-versa are warned that compatibility might not be assured. |
7279 | 182 |
8737 | 183 ** Improved array indexing. |
184 | |
185 The underlying code used for indexing of arrays has been | |
186 completely rewritten and so the indexing of arrays is now | |
187 significantly faster. | |
188 | |
8738 | 189 ** Improved performance for reduction operations. |
190 | |
191 The performance of the sum, prod, sumsq, cumsum, and cumprod | |
192 functions has been significantly improved. | |
193 | |
8737 | 194 ** Diagonal and permutation matrices. |
195 | |
196 The interpreter can now treat diagonal and permutation matrices as | |
197 special objects that store only the non-zero elements, rather than | |
198 general full matrices. Therefore, it is now possible to construct | |
199 and use these matrices in linear algebra without suffering a | |
200 performance penalty due to storing large numbers of zero elements. | |
201 | |
202 ** 64-bit integer arithmetic. | |
203 | |
204 Arithmetic with 64-bit integers (int64 and uint64 types) is fully | |
205 supported, with saturation semantics like the other integer types. | |
206 Performance of most integer arithmetic operations has been | |
207 improved by using integer arithmetic directly. Previously, Octave | |
208 performed integer math with saturation semantics by converting the | |
209 operands to double precision, performing the operation, and then | |
210 converting the result back to an integer value, truncating if | |
211 necessary. | |
212 | |
213 ** Improvements to the norm function. | |
214 | |
215 The norm function is now able to compute row or column norms of a | |
216 matrix in a single call, as well as general matrix p-norms. | |
217 | |
218 ** New functions for reading and writing images. | |
219 | |
220 The imwrite and imread function have been included in Octave. | |
221 These functions require the GraphicsMagick library. The new | |
222 function imfinfo provides information about an image file (size, | |
223 type, colors, etc.) | |
224 | |
225 ** New functions for computing some eigenvalues or singular values. | |
226 | |
227 The eigs and svds functions have been included in Octave. These | |
228 functions require the ARPACK library (now distributed under a | |
229 GPL-compatible license). | |
230 | |
231 ** Changes to strcat. | |
8292 | 232 |
8737 | 233 The strcat function is now compatible with Matlab's strcat |
234 function, which removes trailing whitespace when concatenating | |
235 character strings. For example | |
236 | |
237 strcat ('foo ', 'bar') | |
238 ==> 'foobar' | |
239 | |
240 The new function cstrcat provides the previous behavior of | |
241 Octave's strcat. | |
242 | |
243 ** Specific sparse matrix functions removed. | |
244 | |
245 The following functions, which handled only sparse matrices have | |
246 been removed. Instead of calling these functions directly, you | |
247 should use the corresponding function without the "sp" prefix. | |
248 | |
249 spatan2 spcumsum spkron spprod | |
250 spchol spdet splchol spqr | |
251 spchol2inv spdiag splu spsum | |
252 spcholinv spfind spmax spsumsqk | |
253 spcumprod spinv spmin | |
254 | |
255 ** New QR and Cholesky factorization updating functions. | |
8370
34960ba08a81
document more new features in the NEWS file
Jaroslav Hajek <highegg@gmail.com>
parents:
8292
diff
changeset
|
256 |
8737 | 257 choldelete cholshift qrdelete qrshift |
258 cholinsert cholupdate qrinsert qrupdate | |
259 | |
260 ** New quadrature functions. | |
261 | |
262 dblquad quadgk quadv triplequad | |
263 | |
264 ** Other miscellaneous new functions. | |
8370
34960ba08a81
document more new features in the NEWS file
Jaroslav Hajek <highegg@gmail.com>
parents:
8292
diff
changeset
|
265 |
8747 | 266 addtodate info realpow |
267 bicgstab interp1q realsqrt | |
268 cgs isdebugmode rectint | |
269 command_line_path isfloat regexptranslate | |
270 contrast isstrprop restoredefaultpath | |
271 convn log1p roundb | |
272 datetick lsqnonneg rundemos | |
273 display matlabroot runlength | |
274 expm1 namelengthmax saveobj | |
275 filemarker nargoutchk spaugment | |
276 fstat pathdef strchr | |
277 full perl strvcat | |
278 fzero prctile subspace | |
279 genvarname quantile symvar | |
280 hypot re_read_readline_init_file treelayout | |
281 idivide reallog validatestring | |
8370
34960ba08a81
document more new features in the NEWS file
Jaroslav Hajek <highegg@gmail.com>
parents:
8292
diff
changeset
|
282 |
7990
86dae6e5b83c
Initial update of NEWS for 3.2 release
David Bateman <dbateman@free.fr>
parents:
7279
diff
changeset
|
283 See NEWS.3 for old news. |