Mercurial > octave-libgccjit
annotate NEWS @ 10522:6538ff562949
document keypress and mouse callback properties
author | Shai Ayal <shaiay@users.sourceforge.net> |
---|---|
date | Wed, 14 Apr 2010 22:15:34 +0300 |
parents | 7d23c19249d6 |
children | 74cb77f0a163 |
rev | line source |
---|---|
9352 | 1 Summary of important user-visible changes for version 3.3: |
2 --------------------------------------------------------- | |
3 | |
10522
6538ff562949
document keypress and mouse callback properties
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10453
diff
changeset
|
4 ** The fltk graphics backend now implements the following callback |
6538ff562949
document keypress and mouse callback properties
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10453
diff
changeset
|
5 properties: keypressfcn, keyreleasefcn, windowbuttondownfcn, |
6538ff562949
document keypress and mouse callback properties
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10453
diff
changeset
|
6 windowbuttonmotionfcn, windowbuttonupfcn, and currentpoint. These |
6538ff562949
document keypress and mouse callback properties
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10453
diff
changeset
|
7 enable keyboard and mouse interaction, an example of which can be |
6538ff562949
document keypress and mouse callback properties
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10453
diff
changeset
|
8 seen in the __fltk_ginput__.m script. |
6538ff562949
document keypress and mouse callback properties
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10453
diff
changeset
|
9 |
9799
cfd0aa788ae1
remove reference blas and lapack sources
John W. Eaton <jwe@octave.org>
parents:
9745
diff
changeset
|
10 ** BLAS and LAPACK libraries are now required to build Octave. The |
cfd0aa788ae1
remove reference blas and lapack sources
John W. Eaton <jwe@octave.org>
parents:
9745
diff
changeset
|
11 subset of the reference BLAS and LAPACK libraries has been removed |
cfd0aa788ae1
remove reference blas and lapack sources
John W. Eaton <jwe@octave.org>
parents:
9745
diff
changeset
|
12 from the Octave sources. |
cfd0aa788ae1
remove reference blas and lapack sources
John W. Eaton <jwe@octave.org>
parents:
9745
diff
changeset
|
13 |
10118 | 14 ** The `lookup' function was extended to be more useful for |
15 general-purpose binary searching. Using this improvement, the | |
16 ismember function was rewritten for significantly better | |
17 performance. | |
9352 | 18 |
19 ** Real, integer and logical matrices, when used in indexing, will now | |
20 cache the internal index_vector value (zero-based indices) when | |
21 successfully used as indices, eliminating the conversion penalty for | |
10118 | 22 subsequent indexing by the same matrix. In particular, this means it |
23 is no longer needed to avoid repeated indexing by logical arrays | |
24 using find for performance reasons. | |
9888 | 25 |
10118 | 26 ** Logical matrices are now treated more efficiently when used as |
27 indices. Octave will keep the index as a logical mask unless the | |
28 ratio of true elements is small enough, using a specialized | |
29 code. Previously, all logical matrices were always first converted | |
30 to index vectors. This results in savings in both memory and | |
31 computing time. | |
9480 | 32 |
10118 | 33 ** The `sub2ind' and `ind2sub' functions were reimplemented as compiled |
34 functions for better performance. These functions are now faster, | |
35 can deliver more economized results for ranges, and can reuse the | |
36 index cache mechanism described in previous paragraph. | |
37 | |
38 ** The built-in function equivalents to associative operators (`plus', | |
39 `times', `mtimes', `and', and `or') have been extended to accept | |
40 multiple arguments. This is especially useful for summing | |
41 (multiplying, etc.) lists of objects (of possibly distinct types): | |
9408 | 42 |
9449 | 43 matrix_sum = plus (matrix_list{:}); |
44 | |
10118 | 45 ** An FTP object type based on libcurl has been implemented. These |
46 objects allow ftp connections, downloads and uploads to be | |
47 managed. For example, | |
9880 | 48 |
10118 | 49 fp = ftp ("ftp.octave.org); |
50 cd (fp, "gnu/octave"); | |
51 mget (fp, "octave-3.2.3.tar.bz2"); | |
52 close (fp); | |
9880 | 53 |
10118 | 54 ** The default behavior of `assert (observed, expected)' has been |
55 relaxed to employ less strict checking that does not require the | |
56 internals of the values to match. This avoids previously valid | |
57 tests from breaking due to new internal classes introduced in future | |
58 Octave versions. | |
9449 | 59 |
60 For instance, all of these assertions were true in Octave 3.0.x | |
61 but false in 3.2.x due to new optimizations and improvements: | |
62 | |
63 assert (2*linspace (1, 5, 5), 2*(1:5)) | |
64 assert (zeros (0, 0), []) | |
65 assert (2*ones (1, 5), (2) (ones (1,5))) | |
9462 | 66 |
10118 | 67 ** The behavior of library functions `ismatrix', `issquare', and |
68 `issymmetric' has been changed for better consistency. | |
9873 | 69 |
10292 | 70 * The `ismatrix' function now returns true for all numeric, |
71 logical and character 2d or Nd matrices. Previously, `ismatrix' | |
72 returned false if the first or second dimension was zero. | |
73 Hence, `ismatrix ([])' was false, | |
74 while `ismatrix (zeros (1,2,0))' was true. | |
9873 | 75 |
10118 | 76 * The `issquare' function now returns a logical scalar, and is |
77 equivalent to the expression | |
78 | |
79 ismatrix (x) && ndims (x) == 2 && rows (x) == columns (x) | |
80 | |
81 The dimension is no longer returned. As a result, `issquare ([])' | |
82 now yields true. | |
9873 | 83 |
10118 | 84 * The `issymmetric' function now checks for symmetry instead of |
85 hermitianness. For the latter, ishermitian was created. Also, | |
86 logical scalar is returned rather than the dimension, so | |
87 `issymmetric ([])' is now true. | |
9873 | 88 |
10118 | 89 ** Function handles are now aware of overloaded functions. If a |
90 function is overloaded, the handle determines at the time of its | |
91 reference which function to call. A non-overloaded version does not | |
92 need to exist. | |
9873 | 93 |
10118 | 94 ** Overloading functions for built-in classes (double, int8, cell, |
95 etc.) is now compatible with Matlab. | |
9408 | 96 |
10323 | 97 ** Function handles can now be compared with the == and != operators, |
98 as well as the `isequal' function. | |
99 | |
10118 | 100 ** Performance of concatenation (using []) and the functions `cat', |
101 `horzcat', and `vertcat' has been improved for multidimensional | |
102 arrays. | |
10117 | 103 |
9547 | 104 ** The operation-assignment operators +=, -=, *= and /= now behave more |
10118 | 105 efficiently in certain cases. For instance, if M is a matrix and S a |
106 scalar, then the statement | |
9547 | 107 |
10118 | 108 M += S; |
9547 | 109 |
10118 | 110 will operate on M's data in-place if it is not shared by another |
111 variable, usually increasing both time and memory efficiency. | |
9547 | 112 |
9558 | 113 Only selected common combinations are affected, namely: |
9547 | 114 |
115 matrix += matrix | |
116 matrix -= matrix | |
9558 | 117 matrix .*= matrix |
118 matrix ./= matrix | |
119 | |
9547 | 120 matrix += scalar |
121 matrix -= scalar | |
122 matrix *= scalar | |
123 matrix /= scalar | |
9558 | 124 |
9552 | 125 logical matrix |= logical matrix |
126 logical matrix &= logical matrix | |
9547 | 127 |
10118 | 128 where matrix and scalar belong to the same class. The left-hand |
129 side must be a simple variable reference. | |
9888 | 130 |
10118 | 131 Moreover, when unary operators occur in expressions, Octave will |
132 also try to do the operation in-place if it's argument is a | |
133 temporary expresssion. | |
9589 | 134 |
10118 | 135 ** The effect of comparison operators (<, >, <=, and >=) applied to |
136 complex numbers has changed to be consistent with the strict | |
137 ordering defined by the `max', `min', and `sort' functions. More | |
138 specifically, complex numbers are compared by lexicographical | |
139 comparison of the pairs `[abs(z), arg(z)]'. Previously, only real | |
140 parts were compared; this can be trivially achieved by wrapping the | |
141 operands in real(). | |
9547 | 142 |
10118 | 143 ** The automatic simplification of complex computation results has |
144 changed. Octave will now simplify any complex number with a zero | |
145 imaginary part or any complex matrix with all elements having zero | |
146 imaginary part to a real value. Previously, this was done only for | |
147 positive zeros. Note that the behavior of the complex function is | |
148 unchanged and it still produces a complex value even if the | |
149 imaginary part is zero. | |
9826 | 150 |
10118 | 151 ** As a side effect of code refactoring in liboctave, the binary |
152 logical operations are now more easily amenable to compiler | |
153 optimizations and are thus significantly faster. | |
9595 | 154 |
10118 | 155 ** Octave now allows user-defined `subsasgn' methods to optimize out |
156 redundant copies. For more information, see the manual. | |
9595 | 157 |
10453 | 158 ** More efficient matrix division handling. Octave is now able to |
10118 | 159 handle the expressions |
9664 | 160 |
10118 | 161 M' \ V |
162 M.' \ V | |
163 V / M | |
9664 | 164 |
10118 | 165 (M is a matrix and V is a vector) more efficiently in certain cases. |
166 In particular, if M is triangular, all three expressions will be | |
167 handled by a single call to xTRTRS (from LAPACK), with appropriate | |
10453 | 168 flags. Previously, all three expressions required a physical |
10118 | 169 transpose of M. |
9664 | 170 |
10118 | 171 ** More efficient handling of certain mixed real-complex matrix |
172 operations. For instance, if RM is a real matrix and CM a complex | |
173 matrix, | |
9664 | 174 |
10118 | 175 RM * CM |
9664 | 176 |
177 can now be evaluated either as | |
178 | |
179 complex (RM * real (CM), RM * imag (CM)) | |
180 | |
181 or as | |
182 | |
183 complex (RM) * CM, | |
184 | |
10453 | 185 depending on the dimensions. The first form requires more |
186 temporaries and copying, but halves the FLOP count, which normally | |
187 brings better performance if RM has enough rows. Previously, the | |
188 second form was always used. | |
9664 | 189 |
190 Matrix division is similarly affected. | |
191 | |
10118 | 192 ** More efficient handling of triangular matrix factors returned from |
193 factorizations. The functions for computing QR, LU and Cholesky | |
194 factorizations will now automatically return the triangular matrix | |
195 factors with proper internal matrix_type set, so that it won't need | |
196 to be computed when the matrix is used for division. | |
9717 | 197 |
10118 | 198 ** The built-in `sum' function now handles the non-native summation |
199 (i.e., double precision sum of single or integer inputs) more | |
200 efficiently, avoiding a temporary conversion of the whole input | |
201 array to doubles. Further, `sum' can now accept an extra option | |
202 argument, using a compensated summation algorithm rather than a | |
203 straightforward sum, which significantly improves precision if lots | |
204 of cancellation occurs in the summation. | |
9717 | 205 |
10118 | 206 ** The built-in `bsxfun' function now uses optimized code for certain |
207 cases where built-in operator handles are passed in. Namely, the | |
208 optimizations concern the operators `plus', `minus', `times', | |
209 `ldivide', `rdivide', `power', `and', `or' (for logical arrays), | |
210 the relational operators `eq', `ne', `lt', `le', `gt', `ge', and the | |
211 functions `min' and `max'. Optimizations only apply when both | |
212 operands are of the same built-in class. Mixed real/complex and | |
213 single/double operations will first convert both operands to a | |
214 common type. | |
9745 | 215 |
10118 | 216 ** The `strfind' and `strrep' functions now have compiled |
217 implementations, facilitating significantly more efficient searching | |
218 and replacing in strings, especially with longer patterns. The code | |
219 of `strcat' has been vectorized and is now much more efficient when | |
220 many strings are concatenated. The `strcmpi' and `strncmpi' | |
221 functions are now built-in functions, providing better performance. | |
10208 | 222 |
10453 | 223 ** Matlab-style ignoring input and output function arguments using |
224 tilde (~) is now supported. For more details, consult the manual. | |
10233 | 225 |
10453 | 226 ** The list datatype, deprecated since the introduction of cells, has |
227 been removed. | |
10276 | 228 |
10453 | 229 ** The accumarray function has been optimized and is now significantly |
230 faster in certain important cases. | |
10054 | 231 |
10292 | 232 ** The behavior of isreal and isnumeric functions was changed to be more |
233 Matlab-compatible. | |
234 | |
10406 | 235 ** The integer math & conversion warnings (Octave:int-convert-nan, |
236 Octave:int-convert-non-int-val, Octave:int-convert-overflow, | |
237 Octave:int-math-overflow) have been removed. | |
238 | |
10453 | 239 ** rem and mod are now built-in functions. They also handle integer |
240 types efficiently using integer arithmetic. | |
10437 | 241 |
7990
86dae6e5b83c
Initial update of NEWS for 3.2 release
David Bateman <dbateman@free.fr>
parents:
7279
diff
changeset
|
242 Summary of important user-visible changes for version 3.2: |
5913 | 243 --------------------------------------------------------- |
2452 | 244 |
8737 | 245 ** Compatibility with Matlab graphics has been improved. |
6329 | 246 |
8070
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
247 The hggroup object and associated listener callback functions have |
8737 | 248 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
|
249 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
|
250 |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
251 x = 0:0.1:10; |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
252 y = sin (x); |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
253 plot (x, y, "ydatasource", "y"); |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
254 for i = 1 : 100 |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
255 pause(0.1) |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
256 y = sin (x + 0.1 * i); |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
257 refreshdata(); |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
258 endfor |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
259 |
8737 | 260 works as expected. This capability has be used to introduce |
9031
1052a66078cf
Documentation cleanup of top-level Octave directory (READMEs, INSTALL)
Rik <rdrider0-list@yahoo.com>
parents:
8932
diff
changeset
|
261 stem-series, bar-series, etc., objects for better Matlab |
8737 | 262 compatibility. |
263 | |
264 ** New graphics functions: | |
265 | |
9110
22ae6b3411a7
Add isocolor, isonormals and isosurface functions (For Martin Helm). Add 3D filled triangular patches and the trisurf function
David Bateman <dbateman@free.fr>
parents:
9042
diff
changeset
|
266 addlistener ezcontour gcbo refresh |
22ae6b3411a7
Add isocolor, isonormals and isosurface functions (For Martin Helm). Add 3D filled triangular patches and the trisurf function
David Bateman <dbateman@free.fr>
parents:
9042
diff
changeset
|
267 addproperty ezcontourf ginput refreshdata |
22ae6b3411a7
Add isocolor, isonormals and isosurface functions (For Martin Helm). Add 3D filled triangular patches and the trisurf function
David Bateman <dbateman@free.fr>
parents:
9042
diff
changeset
|
268 allchild ezmesh gtext specular |
22ae6b3411a7
Add isocolor, isonormals and isosurface functions (For Martin Helm). Add 3D filled triangular patches and the trisurf function
David Bateman <dbateman@free.fr>
parents:
9042
diff
changeset
|
269 available_backends ezmeshc intwarning surfl |
22ae6b3411a7
Add isocolor, isonormals and isosurface functions (For Martin Helm). Add 3D filled triangular patches and the trisurf function
David Bateman <dbateman@free.fr>
parents:
9042
diff
changeset
|
270 backend ezplot ishghandle trisurf |
22ae6b3411a7
Add isocolor, isonormals and isosurface functions (For Martin Helm). Add 3D filled triangular patches and the trisurf function
David Bateman <dbateman@free.fr>
parents:
9042
diff
changeset
|
271 cla ezplot3 isocolors waitforbuttonpress |
22ae6b3411a7
Add isocolor, isonormals and isosurface functions (For Martin Helm). Add 3D filled triangular patches and the trisurf function
David Bateman <dbateman@free.fr>
parents:
9042
diff
changeset
|
272 clabel ezpolar isonormals |
22ae6b3411a7
Add isocolor, isonormals and isosurface functions (For Martin Helm). Add 3D filled triangular patches and the trisurf function
David Bateman <dbateman@free.fr>
parents:
9042
diff
changeset
|
273 comet ezsurf isosurface |
22ae6b3411a7
Add isocolor, isonormals and isosurface functions (For Martin Helm). Add 3D filled triangular patches and the trisurf function
David Bateman <dbateman@free.fr>
parents:
9042
diff
changeset
|
274 dellistener findall linkprop |
22ae6b3411a7
Add isocolor, isonormals and isosurface functions (For Martin Helm). Add 3D filled triangular patches and the trisurf function
David Bateman <dbateman@free.fr>
parents:
9042
diff
changeset
|
275 diffuse gcbf plotmatrix |
8070
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
276 |
8737 | 277 ** New experimental OpenGL/FLTK based plotting system. |
278 | |
279 An experimental plotting system based on OpenGL and the FLTK | |
280 toolkit is now part of Octave. This backend is disabled by | |
281 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
|
282 |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
283 backend ("fltk") |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
284 |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
285 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
|
286 |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
287 backend (h, "fltk") |
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
288 |
8737 | 289 where "h" is a valid figure handle. Please note that this backend |
290 does not yet support text objects. Obviously, this is a necessary | |
291 feature before it can be considered usable. We are looking for | |
292 volunteers to help implement this missing feature. | |
8070
3b53b25e2550
Add data sources and line series
David Bateman <dbateman@free.fr>
parents:
8014
diff
changeset
|
293 |
8737 | 294 ** Functions providing direct access to gnuplot have been removed. |
295 | |
7990
86dae6e5b83c
Initial update of NEWS for 3.2 release
David Bateman <dbateman@free.fr>
parents:
7279
diff
changeset
|
296 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
|
297 __gnuplot_show__, __gnuplot_replot__, __gnuplot_splot__, |
8737 | 298 __gnuplot_save_data__ and __gnuplot_send_inline_data__ have been |
299 removed from Octave. These function were incompatible with the | |
300 high level graphics handle code. | |
6329 | 301 |
8885 | 302 ** The Control, Finance and Quaternion functions have been removed. |
303 | |
304 These functions are now available as separate packages from | |
305 | |
306 http://octave.sourceforge.net/packages.html | |
307 | |
308 and can be reinstalled using the Octave package manager (see | |
309 the pkg function). | |
310 | |
311 ** Specific sparse matrix functions removed. | |
312 | |
313 The following functions, which handled only sparse matrices have | |
314 been removed. Instead of calling these functions directly, you | |
315 should use the corresponding function without the "sp" prefix. | |
8737 | 316 |
8885 | 317 spatan2 spcumsum spkron spprod |
318 spchol spdet splchol spqr | |
319 spchol2inv spdiag splu spsum | |
320 spcholinv spfind spmax spsumsqk | |
321 spcumprod spinv spmin | |
322 | |
323 ** Improvements to the debugger. | |
324 | |
325 The interactive debugging features have been improved. Stopping | |
326 on statements with dbstop should work correctly now. Stepping | |
327 into and over functions, and stepping one statement at a time | |
328 (with dbstep) now works. Moving up and down the call stack with | |
329 dbup and dbdown now works. The dbstack function is now available | |
330 to print the current function call stack. The new dbquit function | |
331 is available to exit the debugging mode. | |
332 | |
333 ** Improved traceback error messages. | |
334 | |
335 Traceback error messages are much more concise and easier to | |
336 understand. They now display information about the function call | |
337 stack instead of the stack of all statements that were active at | |
338 the point of the error. | |
8014
44d206ae68c9
improve fsolve compatibility
John W. Eaton <jwe@octave.org>
parents:
7990
diff
changeset
|
339 |
8737 | 340 ** Object Oriented Programming. |
8405
d79dfbff2f9d
document new norm features in NEWS
Jaroslav Hajek <highegg@gmail.com>
parents:
8396
diff
changeset
|
341 |
8737 | 342 Octave now includes OOP features and the user can create their own |
343 class objects and overloaded functions and operators. For | |
344 example, all methods of a class called "myclass" will be found in | |
345 a directory "@myclass" on the users path. The class specific | |
346 versions of functions and operators take precedence over the | |
347 generic versions of these functions. | |
348 | |
349 New functions related to OOP include | |
7189 | 350 |
8737 | 351 class inferiorto isobject loadobj methods superiorto |
352 | |
353 See the Octave manual for more details. | |
7038 | 354 |
8747 | 355 ** Parsing of Command-style Functions. |
356 | |
357 Octave now parses command-style functions without needing to first | |
358 declare them with "mark_as_command". The rules for recognizing a | |
359 command-style function calls are | |
360 | |
361 * A command must appear as the first word in a statement, | |
362 followed by a space. | |
363 | |
364 * The first character after the space must not be '=' or '(' | |
365 | |
366 * The next token after the space must not look like a binary | |
367 operator. | |
368 | |
369 These rules should be mostly compatible with the way Matlab parses | |
370 command-style function calls and allow users to define commands in | |
371 .m files without having to mark them as commands. | |
372 | |
373 Note that previous versions of Octave allowed expressions like | |
374 | |
375 x = load -text foo.dat | |
376 | |
377 but an expression like this will now generate a parse error. In | |
378 order to assign the value returned by a function to a variable, | |
379 you must use the normal function call syntax: | |
380 | |
381 x = load ("-text", "foo.dat"); | |
382 | |
8737 | 383 ** Block comments. |
384 | |
8747 | 385 Commented code can be between matching "#{" and "#}" or "%{" and |
386 "%}" markers, even if the commented code spans several line. This | |
387 allows blocks code to be commented, without needing to comment | |
388 each line. For example, | |
5814 | 389 |
8747 | 390 function [s, t] = func (x, y) |
391 s = 2 * x; | |
392 #{ | |
393 s *= y; | |
394 t = y + x; | |
395 #} | |
7990
86dae6e5b83c
Initial update of NEWS for 3.2 release
David Bateman <dbateman@free.fr>
parents:
7279
diff
changeset
|
396 endfunction |
5814 | 397 |
8747 | 398 the lines "s *= y;" and "t = y + x" will not be executed. |
8737 | 399 |
400 ** Special treatment in the parser of expressions like "a' * b". | |
2452 | 401 |
8737 | 402 In these cases the transpose is no longer explicitly formed and |
403 BLAS libraries are called with the transpose flagged, | |
404 significantly improving performance for these kinds of | |
405 operations. | |
8417
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8405
diff
changeset
|
406 |
8737 | 407 ** Single Precision data type. |
2452 | 408 |
8737 | 409 Octave now includes a single precision data type. Single |
410 precision variables can be created with the "single" command, or | |
9034
52515efc50c0
Documentation cleanup on NEWS file
Rik <rdrider0-list@yahoo.com>
parents:
9031
diff
changeset
|
411 from functions like ones, eye, etc. For example, |
5995 | 412 |
8737 | 413 single (1) |
414 ones (2, 2, "single") | |
415 zeros (2, 2, "single") | |
416 eye (2, 2, "single") | |
417 Inf (2, 2, "single") | |
418 NaN (2, 2, "single") | |
419 NA (2, 2, "single") | |
7279 | 420 |
8737 | 421 all create single precision variables. For compatibility with |
422 Matlab, mixed double/single precision operators and functions | |
423 return single precision types. | |
424 | |
425 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
|
426 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
|
427 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
|
428 visa-versa are warned that compatibility might not be assured. |
7279 | 429 |
8737 | 430 ** Improved array indexing. |
431 | |
432 The underlying code used for indexing of arrays has been | |
9034
52515efc50c0
Documentation cleanup on NEWS file
Rik <rdrider0-list@yahoo.com>
parents:
9031
diff
changeset
|
433 completely rewritten and indexing is now significantly faster. |
8737 | 434 |
8755 | 435 ** Improved memory management. |
436 | |
437 Octave will now attempt to share data in some cases where previously | |
438 a copy would be made, such as certain array slicing operations or | |
9031
1052a66078cf
Documentation cleanup of top-level Octave directory (READMEs, INSTALL)
Rik <rdrider0-list@yahoo.com>
parents:
8932
diff
changeset
|
439 conversions between cells, structs and cs-lists. This usually reduces |
8755 | 440 both time and memory consumption. |
9128 | 441 Also, Octave will now attempt to detect and optimize usage of a vector |
442 as a stack, when elements are being repeatedly inserted at/removed from | |
443 the end of the vector. | |
8755 | 444 |
8738 | 445 ** Improved performance for reduction operations. |
446 | |
8755 | 447 The performance of the sum, prod, sumsq, cumsum, cumprod, any, all, |
448 max and min functions has been significantly improved. | |
8738 | 449 |
9006 | 450 ** Sorting and searching. |
451 | |
452 The performance of sort has been improved, especially when sorting | |
10453 | 453 indices are requested. An efficient built-in issorted |
454 implementation was added. The sortrows function now uses a more | |
455 efficient algorithm, especially in the homegeneous case. The lookup | |
456 function is now a built-in function performing a binary search, | |
457 optimized for long runs of close elements. Lookup also works with | |
458 cell arrays of strings. | |
9006 | 459 |
460 ** Range arithmetics | |
461 | |
10453 | 462 For some operations on ranges, Octave will attempt to keep the |
463 result as a range. These include negation, adding a scalar, | |
464 subtracting a scalar, and multiplying by a scalar. Ranges with zero | |
465 increment are allowed and can be constructed using the built-in | |
466 function `ones'. | |
9006 | 467 |
468 ** Various performance improvements. | |
469 | |
10453 | 470 Performance of a number of other built-in operations and functions |
471 was improved, including: | |
9006 | 472 |
473 * logical operations | |
474 * comparison operators | |
475 * element-wise power | |
476 * accumarray | |
477 * cellfun | |
478 * isnan | |
479 * isinf | |
480 * isfinite | |
481 * nchoosek | |
482 * repmat | |
483 * strcmp | |
484 | |
8737 | 485 ** 64-bit integer arithmetic. |
486 | |
487 Arithmetic with 64-bit integers (int64 and uint64 types) is fully | |
488 supported, with saturation semantics like the other integer types. | |
489 Performance of most integer arithmetic operations has been | |
490 improved by using integer arithmetic directly. Previously, Octave | |
491 performed integer math with saturation semantics by converting the | |
492 operands to double precision, performing the operation, and then | |
493 converting the result back to an integer value, truncating if | |
494 necessary. | |
495 | |
8885 | 496 ** Diagonal and permutation matrices. |
497 | |
498 The interpreter can now treat diagonal and permutation matrices as | |
499 special objects that store only the non-zero elements, rather than | |
500 general full matrices. Therefore, it is now possible to construct | |
501 and use these matrices in linear algebra without suffering a | |
502 performance penalty due to storing large numbers of zero elements. | |
503 | |
504 ** Improvements to fsolve. | |
505 | |
506 The fsolve function now accepts an option structure argument (see | |
507 also the optimset function). The INFO values returned from fsolve | |
508 have changed to be compatible with Matlab's fsolve function. | |
509 Additionally, fsolve is now able to solve overdetermined systems, | |
510 complex-differentiable complex systems, systems with a sparse | |
511 jacobian and can work in single precision if given single precision | |
9031
1052a66078cf
Documentation cleanup of top-level Octave directory (READMEs, INSTALL)
Rik <rdrider0-list@yahoo.com>
parents:
8932
diff
changeset
|
512 inputs. It can also be called recursively. |
8885 | 513 |
8737 | 514 ** Improvements to the norm function. |
515 | |
516 The norm function is now able to compute row or column norms of a | |
517 matrix in a single call, as well as general matrix p-norms. | |
518 | |
519 ** New functions for computing some eigenvalues or singular values. | |
520 | |
521 The eigs and svds functions have been included in Octave. These | |
522 functions require the ARPACK library (now distributed under a | |
523 GPL-compatible license). | |
524 | |
525 ** 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
|
526 |
8737 | 527 choldelete cholshift qrdelete qrshift |
528 cholinsert cholupdate qrinsert qrupdate | |
529 | |
530 ** New quadrature functions. | |
531 | |
532 dblquad quadgk quadv triplequad | |
533 | |
8885 | 534 ** New functions for reading and writing images. |
535 | |
536 The imwrite and imread functions have been included in Octave. | |
537 These functions require the GraphicsMagick library. The new | |
538 function imfinfo provides information about an image file (size, | |
539 type, colors, etc.) | |
540 | |
9215
1500d0197484
allow multiple input event hook functions to be installed simultaneously
John W. Eaton <jwe@octave.org>
parents:
9128
diff
changeset
|
541 ** The input_event_hook function has been replaced by the pair of |
1500d0197484
allow multiple input event hook functions to be installed simultaneously
John W. Eaton <jwe@octave.org>
parents:
9128
diff
changeset
|
542 functions add_input_event_hook and remove_input_event_hook so that |
1500d0197484
allow multiple input event hook functions to be installed simultaneously
John W. Eaton <jwe@octave.org>
parents:
9128
diff
changeset
|
543 more than one hook function may be installed at a time. |
1500d0197484
allow multiple input event hook functions to be installed simultaneously
John W. Eaton <jwe@octave.org>
parents:
9128
diff
changeset
|
544 |
8737 | 545 ** Other miscellaneous new functions. |
8370
34960ba08a81
document more new features in the NEWS file
Jaroslav Hajek <highegg@gmail.com>
parents:
8292
diff
changeset
|
546 |
8932
2d0f8692a82e
Add the 'histc' function
Soren Hauberg <hauberg@gmail.com>
parents:
8888
diff
changeset
|
547 addtodate hypot reallog |
2d0f8692a82e
Add the 'histc' function
Soren Hauberg <hauberg@gmail.com>
parents:
8888
diff
changeset
|
548 bicgstab idivide realpow |
9006 | 549 cellslices info realsqrt |
550 cgs interp1q rectint | |
551 command_line_path isdebugmode regexptranslate | |
552 contrast isfloat restoredefaultpath | |
553 convn isstrprop roundb | |
554 cummin log1p rundemos | |
555 cummax lsqnonneg runlength | |
556 datetick matlabroot saveobj | |
557 display namelengthmax spaugment | |
558 expm1 nargoutchk strchr | |
559 filemarker pathdef strvcat | |
560 fstat perl subspace | |
561 full prctile symvar | |
562 fzero quantile treelayout | |
563 genvarname re_read_readline_init_file validatestring | |
564 histc | |
8370
34960ba08a81
document more new features in the NEWS file
Jaroslav Hajek <highegg@gmail.com>
parents:
8292
diff
changeset
|
565 |
8885 | 566 ** Changes to strcat. |
567 | |
568 The strcat function is now compatible with Matlab's strcat | |
569 function, which removes trailing whitespace when concatenating | |
570 character strings. For example | |
571 | |
572 strcat ('foo ', 'bar') | |
573 ==> 'foobar' | |
574 | |
575 The new function cstrcat provides the previous behavior of | |
576 Octave's strcat. | |
577 | |
578 ** Improvements to the help functions. | |
579 | |
9034
52515efc50c0
Documentation cleanup on NEWS file
Rik <rdrider0-list@yahoo.com>
parents:
9031
diff
changeset
|
580 The help system has been mostly re-implemented in .m files to make |
8885 | 581 it easier to modify. Performance of the lookfor function has been |
582 greatly improved by caching the help text from all functions that | |
583 are distributed with Octave. The pkg function has been modified | |
584 to generate cache files for external packages when they are | |
585 installed. | |
586 | |
8888
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
587 ** Deprecated functions. |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
588 |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
589 The following functions were deprecated in Octave 3.0 and will be |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
590 removed in Octave 3.4 (or whatever version is the second major |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
591 release after 3.0): |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
592 |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
593 beta_cdf geometric_pdf pascal_pdf |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
594 beta_inv geometric_rnd pascal_rnd |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
595 beta_pdf hypergeometric_cdf poisson_cdf |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
596 beta_rnd hypergeometric_inv poisson_inv |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
597 binomial_cdf hypergeometric_pdf poisson_pdf |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
598 binomial_inv hypergeometric_rnd poisson_rnd |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
599 binomial_pdf intersection polyinteg |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
600 binomial_rnd is_bool setstr |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
601 chisquare_cdf is_complex struct_contains |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
602 chisquare_inv is_list struct_elements |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
603 chisquare_pdf is_matrix t_cdf |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
604 chisquare_rnd is_scalar t_inv |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
605 clearplot is_square t_pdf |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
606 clg is_stream t_rnd |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
607 com2str is_struct uniform_cdf |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
608 exponential_cdf is_symmetric uniform_inv |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
609 exponential_inv is_vector uniform_pdf |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
610 exponential_pdf isstr uniform_rnd |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
611 exponential_rnd lognormal_cdf weibcdf |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
612 f_cdf lognormal_inv weibinv |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
613 f_inv lognormal_pdf weibpdf |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
614 f_pdf lognormal_rnd weibrnd |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
615 f_rnd meshdom weibull_cdf |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
616 gamma_cdf normal_cdf weibull_inv |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
617 gamma_inv normal_inv weibull_pdf |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
618 gamma_pdf normal_pdf weibull_rnd |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
619 gamma_rnd normal_rnd wiener_rnd |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
620 geometric_cdf pascal_cdf |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
621 geometric_inv pascal_inv |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
622 |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
623 The following functions are now deprecated in Octave 3.2 and will |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
624 be removed in Octave 3.6 (or whatever version is the second major |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
625 release after 3.2): |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
626 |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
627 create_set spcholinv spmax |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
628 dmult spcumprod spmin |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
629 iscommand spcumsum spprod |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
630 israwcommand spdet spqr |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
631 lchol spdiag spsum |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
632 loadimage spfind spsumsq |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
633 mark_as_command spinv str2mat |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
634 mark_as_rawcommand spkron unmark_command |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
635 spatan2 splchol unmark_rawcommand |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
636 spchol split |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
637 spchol2inv splu |
0c7b0049c023
mark create_set as deprecated in 3.2, not 3.0
John W. Eaton <jwe@octave.org>
parents:
8885
diff
changeset
|
638 |
7990
86dae6e5b83c
Initial update of NEWS for 3.2 release
David Bateman <dbateman@free.fr>
parents:
7279
diff
changeset
|
639 See NEWS.3 for old news. |