diff -r 3da4b083e0b8 NEWS --- a/NEWS Tue Jan 27 18:55:25 2015 +0100 +++ b/NEWS Fri Jan 30 14:01:39 2015 -0800 @@ -1,4 +1,4 @@ -Summary of important user-visible changes for version 4.2: +Summary of important user-visible changes for version 4.0: --------------------------------------------------------- ** A new syntax for object oriented programming termed classdef has been @@ -19,7 +19,7 @@ Summary of important user-visible change audioinfo audiorecorder audioplayer audiowrite - ** Other new classes in Octave 4.2: + ** Other new classes in Octave 4.0: audioplayer inputParser audiorecorder @@ -37,6 +37,30 @@ Summary of important user-visible change All three optimizations are disabled if Octave is started with the --braindead command line option. + ** For compatibility with Matlab, the "backtrace" warning option is now + enabled by default. + + ** The preference + + do_braindead_shortcircuit_evaluation + + is now enabled by default. + + ** The preference + + allow_noninteger_range_as_index + + is now enabled by default and the warning ID + + Octave:noninteger-range-as-index + + is now set to "on" by default instead of "error" by default and "on" + for --traditional. + + ** polyeig now returns a row vector of eigenvalues rather than a matrix + with the eigenvalues on the diagonal. This change was made for Matlab + compatibility. + ** Interpolation function changes for Matlab compatibility The interpolation method 'cubic' is now equivalent to 'pchip' @@ -122,7 +146,7 @@ Summary of important user-visible change previous separate warning IDs "Octave:fopen-file-in-path", "Octave:load-file-in-path", and "Octave:md5sum-file-in-path". - ** Other new functions added in 4.2: + ** Other new functions added in 4.0: bandwidth cubehelix @@ -146,6 +170,7 @@ Summary of important user-visible change rotate sylvester unsetenv + validateattributes zoom ** inline() scheduled for eventual deprecation by Matlab @@ -157,9 +182,9 @@ Summary of important user-visible change ** Deprecated functions. - The following functions have been deprecated in Octave 4.2 and will - be removed from Octave 4.6 (or whatever version is the second major - release after 4.2): + The following functions have been deprecated in Octave 4.0 and will + be removed from Octave 4.4 (or whatever version is the second major + release after 4.0): Function | Replacement ---------------------|------------------ @@ -176,8 +201,12 @@ Summary of important user-visible change syl | sylvester usage | print_usage - The following functions were deprecated in Octave 3.8 and have been - removed from Octave 4.2. + allow_noninteger_range_as_index + do_braindead_shortcircuit_evaluation + + ** The following functions were deprecated in Octave 3.8 and will be + removed from Octave 4.2 (or whatever version is the second major + release after 3.8): default_save_options java_new gen_doc_cache java_unsigned_conversion @@ -187,19 +216,33 @@ Summary of important user-visible change java_debug read_readline_init_file java_invoke saving_history - The following keywords were deprecated in Octave 3.8 and have been - removed from Octave 4.2 + ** The following functions were deprecated in Octave 3.6 and have been + removed from Octave 4.0. + + cut polyderiv + cor shell_cmd + corrcoef studentize + __error_text__ sylvester_matrix + error_text + + ** The following keywords were deprecated in Octave 3.8 and have been + removed from Octave 4.0 static - The following configuration variables were deprecated in Octave 3.8 - and have been removed from Octave 4.2 + ** The following configuration variables were deprecated in Octave 3.8 + and have been removed from Octave 4.0 CC_VERSION (now GCC_VERSION) CXX_VERSION (now GXX_VERSION) - The internal class was deprecated in Octave 3.8 and has - been removed from Octave 4.2. Replacement classes are + ** The internal function atan2 of the sparse matrix class has been deprecated + in Octave 4.0 and will be removed from Octave 4.4 (or whatever version is + the second major release after 4.0). Use the Fatan2 function with sparse + inputs as a replacement. + + ** The internal class was deprecated in Octave 3.8 and has + been removed from Octave 4.0. Replacement classes are (struct array) or for a single structure. ** The warning ID Octave:singular-matrix-div has been replaced by @@ -212,60 +255,6 @@ Summary of important user-visible change and DEFINE_OCTAVE_ALLOCATOR2) are now unconditionally defined to be empty. -Summary of important user-visible changes for version 4.0: ---------------------------------------------------------- - - ** For compatibility with Matlab, the "backtrace" warning option is now - enabled by default. - - ** The preference - - do_braindead_shortcircuit_evaluation - - is now enabled by default. - - ** The preference - - allow_noninteger_range_as_index - - is now enabled by default and the warning ID - - Octave:noninteger-range-as-index - - is now set to "on" by default instead of "error" by default and "on" - for --traditional. - - ** polyeig now returns a row vector of eigenvalues rather than a matrix - with the eigenvalues on the diagonal. This change was made for Matlab - compatibility. - - ** Other new functions added in 4.0.0: - - validateattributes - - ** Deprecated functions. - - The following functions were deprecated in Octave 3.6 and have been - removed from Octave 4.0. - - cut polyderiv - cor shell_cmd - corrcoef studentize - __error_text__ sylvester_matrix - error_text - - The following functions have been deprecated in Octave 4.0 and will - be removed from Octave 4.4 (or whatever version is the second major - release after 4.0): - - allow_noninteger_range_as_index - do_braindead_shortcircuit_evaluation - - The internal function atan2 of the sparse matrix class has been deprecated - in Octave 4.0 and will be removed from Octave 4.4 (or whatever version is - the second major release after 4.0). Use the Fatan2 function with sparse - inputs as a replacement. - --------------------------------------------------------- See NEWS.3 for old news. diff -r 3da4b083e0b8 configure.ac --- a/configure.ac Tue Jan 27 18:55:25 2015 +0100 +++ b/configure.ac Fri Jan 30 14:01:39 2015 -0800 @@ -19,13 +19,13 @@ dnl Copyright (C) 1993-2014 John W. Eato ### . AC_PREREQ([2.62]) -AC_INIT([GNU Octave], [4.1.0+], [http://octave.org/bugs.html], [octave]) +AC_INIT([GNU Octave], [3.9.0+], [http://octave.org/bugs.html], [octave]) dnl Note that the version number is duplicated here and in AC_INIT dnl because AC_INIT requires it to be static, not computed from dnl shell variables. -OCTAVE_MAJOR_VERSION=4 -OCTAVE_MINOR_VERSION=1 +OCTAVE_MAJOR_VERSION=3 +OCTAVE_MINOR_VERSION=9 OCTAVE_PATCH_VERSION=0+ dnl PACKAGE_VERSION is set by the AC_INIT VERSION arg diff -r 3da4b083e0b8 libinterp/corefcn/spparms.cc --- a/libinterp/corefcn/spparms.cc Tue Jan 27 18:55:25 2015 +0100 +++ b/libinterp/corefcn/spparms.cc Fri Jan 30 14:01:39 2015 -0800 @@ -131,7 +131,7 @@ longer running time.\n\ if (str == "defaults" || str == "default") { - // FIXME: deprecated in 4.2, remove "defaults" for 4.6 release + // FIXME: deprecated in 4.0, remove "defaults" for 4.4 release static bool warned = false; if (! warned && str == "defaults") { diff -r 3da4b083e0b8 scripts/deprecated/bicubic.m --- a/scripts/deprecated/bicubic.m Tue Jan 27 18:55:25 2015 +0100 +++ b/scripts/deprecated/bicubic.m Fri Jan 30 14:01:39 2015 -0800 @@ -19,7 +19,7 @@ ## -*- texinfo -*- ## @deftypefn {Function File} address@hidden =} bicubic (@var{x}, @var{y}, @var{z}, @var{xi}, @var{yi}, @var{extrapval}) ## -## @code{bicubic} is deprecated and will be removed in Octave version 4.6. +## @code{bicubic} is deprecated and will be removed in Octave version 4.4. ## Use @code{interp2 (@dots{}, "spline")} for the equivalent functionality. ## ## Return a matrix @var{zi} corresponding to the bicubic @@ -35,7 +35,7 @@ ## Bicubic interpolation method. ## Author: Hoxide Ma -## Deprecated in version 4.2 +## Deprecated in version 4.0 function zi = bicubic (x, y, z, xi, yi, extrapval, spline_alpha) diff -r 3da4b083e0b8 scripts/deprecated/delaunay3.m --- a/scripts/deprecated/delaunay3.m Tue Jan 27 18:55:25 2015 +0100 +++ b/scripts/deprecated/delaunay3.m Fri Jan 30 14:01:39 2015 -0800 @@ -20,7 +20,7 @@ ## @deftypefn {Function File} address@hidden =} delaunay3 (@var{x}, @var{y}, @var{z}) ## @deftypefnx {Function File} address@hidden =} delaunay3 (@var{x}, @var{y}, @var{z}, @var{options}) ## -## @code{delaunay3} is deprecated and will be removed in Octave version 4.6. +## @code{delaunay3} is deprecated and will be removed in Octave version 4.4. ## Please use @code{delaunay} in all new code. ## ## Compute the Delaunay triangulation for a 3-D set of points. @@ -51,6 +51,8 @@ ## Author: Kai Habel +## Deprecated in 4.0 + function tetr = delaunay3 (x, y, z, options) persistent warned = false; diff -r 3da4b083e0b8 scripts/deprecated/dump_prefs.m --- a/scripts/deprecated/dump_prefs.m Tue Jan 27 18:55:25 2015 +0100 +++ b/scripts/deprecated/dump_prefs.m Fri Jan 30 14:01:39 2015 -0800 @@ -20,7 +20,7 @@ ## @deftypefn {Function File} {} dump_prefs () ## @deftypefnx {Function File} {} dump_prefs (@var{fid}) ## -## @code{dump_prefs} is deprecated and will be removed in Octave version 4.6. +## @code{dump_prefs} is deprecated and will be removed in Octave version 4.4. ## Please use individual preference get/set routines in all new code. ## ## Dump the current settings of all user preferences to stdout in a format that @@ -33,6 +33,8 @@ ## Author: jwe +## Deprecated in 4.0 + function dump_prefs (fid) persistent warned = false; diff -r 3da4b083e0b8 scripts/deprecated/find_dir_in_path.m --- a/scripts/deprecated/find_dir_in_path.m Tue Jan 27 18:55:25 2015 +0100 +++ b/scripts/deprecated/find_dir_in_path.m Fri Jan 30 14:01:39 2015 -0800 @@ -23,7 +23,7 @@ ## @seealso{dir_in_loadpath} ## @end deftypefn -## Deprecated in version 4.2 +## Deprecated in version 4.0 function retval = find_dir_in_path (varargin) diff -r 3da4b083e0b8 scripts/deprecated/finite.m --- a/scripts/deprecated/finite.m Tue Jan 27 18:55:25 2015 +0100 +++ b/scripts/deprecated/finite.m Fri Jan 30 14:01:39 2015 -0800 @@ -19,7 +19,7 @@ ## -*- texinfo -*- ## @deftypefn {Mapping Function} {} finite (@var{x}) ## -## @code{finite} is deprecated and will be removed in Octave version 4.6. +## @code{finite} is deprecated and will be removed in Octave version 4.4. ## Please use @code{isfinite} in all new code. ## ## Return a logical array which is true where the elements of @var{x} are @@ -35,7 +35,7 @@ ## @seealso{isfinite, isinf, isnan, isna} ## @end deftypefn -## Deprecated in version 4.2 +## Deprecated in version 4.0 function retval = finite (varargin) diff -r 3da4b083e0b8 scripts/deprecated/fmod.m --- a/scripts/deprecated/fmod.m Tue Jan 27 18:55:25 2015 +0100 +++ b/scripts/deprecated/fmod.m Fri Jan 30 14:01:39 2015 -0800 @@ -19,7 +19,7 @@ ## -*- texinfo -*- ## @deftypefn {Mapping Function} {} fmod (@var{x}, @var{y}) ## -## @code{fmod} is deprecated and will be removed in Octave version 4.6. +## @code{fmod} is deprecated and will be removed in Octave version 4.4. ## Please use @code{rem} in all new code. ## ## Return the remainder of the division @address@hidden / @var{y}}, computed @@ -34,7 +34,7 @@ ## @seealso{rem, mod} ## @end deftypefn -## Deprecated in version 4.2 +## Deprecated in version 4.0 function retval = fmod (varargin) diff -r 3da4b083e0b8 scripts/deprecated/fnmatch.m --- a/scripts/deprecated/fnmatch.m Tue Jan 27 18:55:25 2015 +0100 +++ b/scripts/deprecated/fnmatch.m Fri Jan 30 14:01:39 2015 -0800 @@ -19,7 +19,7 @@ ## -*- texinfo -*- ## @deftypefn {Built-in Function} {} fnmatch (@var{pattern}, @var{string}) ## -## @code{fnmatch} is deprecated and will be removed in Octave version 4.6. +## @code{fnmatch} is deprecated and will be removed in Octave version 4.4. ## Please use @code{glob} or @code{regexp} in all new code. ## ## Return true or false for each element of @var{string} that matches any of @@ -35,7 +35,7 @@ ## @seealso{glob, regexp} ## @end deftypefn -## Deprecated in version 4.2 +## Deprecated in version 4.0 function retval = fnmatch (varargin) diff -r 3da4b083e0b8 scripts/deprecated/luinc.m --- a/scripts/deprecated/luinc.m Tue Jan 27 18:55:25 2015 +0100 +++ b/scripts/deprecated/luinc.m Fri Jan 30 14:01:39 2015 -0800 @@ -20,7 +20,7 @@ ## @deftypefnx {Built-in Function} address@hidden, @var{U}, @var{P}, @var{Q}] =} luinc (@var{A}, @var{droptol}) ## @deftypefnx {Built-in Function} address@hidden, @var{U}, @var{P}, @var{Q}] =} luinc (@var{A}, @var{opts}) ## -## @code{luinc} is deprecated and will be removed in Octave version 4.6. +## @code{luinc} is deprecated and will be removed in Octave version 4.4. ## Please use @code{ilu} or @code{ichol} in all new code. ## ## Produce the incomplete address@hidden of the sparse matrix @var{A}. @@ -76,7 +76,7 @@ ## @seealso{ilu, ichol, lu, sparse} ## @end deftypefn -## Deprecated in version 4.2 +## Deprecated in version 4.0 function [L, U, P, Q] = luinc (varargin) diff -r 3da4b083e0b8 scripts/deprecated/module.mk --- a/scripts/deprecated/module.mk Tue Jan 27 18:55:25 2015 +0100 +++ b/scripts/deprecated/module.mk Fri Jan 30 14:01:39 2015 -0800 @@ -2,16 +2,30 @@ FCN_FILE_DIRS += deprecated deprecated_FCN_FILES = \ deprecated/bicubic.m \ + deprecated/default_save_options.m \ deprecated/delaunay3.m \ deprecated/dump_prefs.m \ deprecated/find_dir_in_path.m \ deprecated/finite.m \ deprecated/fmod.m \ deprecated/fnmatch.m \ + deprecated/gen_doc_cache.m \ + deprecated/interp1q.m \ + deprecated/isequalwithequalnans.m \ deprecated/isstr.m \ + deprecated/java_convert_matrix.m \ + deprecated/java_debug.m \ + deprecated/java_invoke.m \ + deprecated/java_new.m \ + deprecated/java_unsigned_conversion.m \ + deprecated/javafields.m \ + deprecated/javamethods.m \ deprecated/luinc.m \ + deprecated/nfields.m \ deprecated/octave_tmp_file_name.m \ - deprecated/nfields.m \ + deprecated/re_read_readline_init_file.m \ + deprecated/read_readline_init_file.m \ + deprecated/saving_history.m \ deprecated/strmatch.m \ deprecated/syl.m \ deprecated/usage.m diff -r 3da4b083e0b8 scripts/deprecated/nfields.m --- a/scripts/deprecated/nfields.m Tue Jan 27 18:55:25 2015 +0100 +++ b/scripts/deprecated/nfields.m Fri Jan 30 14:01:39 2015 -0800 @@ -20,11 +20,13 @@ ## @deftypefn {Function File} {} nfields (@var{s}) ## Return the number of fields of the structure @var{s}. ## -## @strong{Warning:} @code{nfields} is scheduled for removal in version 4.6. +## @strong{Warning:} @code{nfields} is scheduled for removal in version 4.4. ## Use @code{numfields} instead. ## @seealso{numfields, fieldnames} ## @end deftypefn +## Deprecated in 4.0 + function retval = nfields (varargin) persistent warned = false; diff -r 3da4b083e0b8 scripts/deprecated/octave_tmp_file_name.m --- a/scripts/deprecated/octave_tmp_file_name.m Tue Jan 27 18:55:25 2015 +0100 +++ b/scripts/deprecated/octave_tmp_file_name.m Fri Jan 30 14:01:39 2015 -0800 @@ -22,7 +22,7 @@ ## @deftypefnx {Built-in Function} address@hidden =} octave_tmp_file_name (@var{dir}, @var{prefix}) ## ## @code{octave_tmp_file_name} is deprecated and will be removed in Octave -## version 4.6. Use @code{tempname} for equivalent functionality. +## version 4.4. Use @code{tempname} for equivalent functionality. ## ## Return a unique temporary file name as a string. ## @@ -33,8 +33,7 @@ ## @seealso{tempname, tmpnam, mkstemp, tempdir, P_tmpdir, tmpfile} ## @end deftypefn -## Deprecated in version 4.2 - +## Deprecated in version 4.0 function filename = octave_tmp_file_name (varargin) diff -r 3da4b083e0b8 scripts/deprecated/strmatch.m --- a/scripts/deprecated/strmatch.m Tue Jan 27 18:55:25 2015 +0100 +++ b/scripts/deprecated/strmatch.m Fri Jan 30 14:01:39 2015 -0800 @@ -22,7 +22,7 @@ ## @deftypefn {Function File} {} strmatch (@var{s}, @var{A}) ## @deftypefnx {Function File} {} strmatch (@var{s}, @var{A}, "exact") ## -## @code{strmatch} is deprecated and will be removed in Octave version 4.6. +## @code{strmatch} is deprecated and will be removed in Octave version 4.4. ## Use @code{strncmp} (normal case), or @code{strcmp} (@qcode{"exact"} case), ## or @code{regexp} in all new code. ## @@ -53,7 +53,7 @@ ## Author: Paul Kienzle, Alois Schloegl ## Adapted-by: jwe -## Deprecated in version 4.2 +## Deprecated in version 4.0 function idx = strmatch (s, A, exact) diff -r 3da4b083e0b8 scripts/deprecated/syl.m --- a/scripts/deprecated/syl.m Tue Jan 27 18:55:25 2015 +0100 +++ b/scripts/deprecated/syl.m Fri Jan 30 14:01:39 2015 -0800 @@ -19,7 +19,7 @@ ## -*- texinfo -*- ## @deftypefn {Built-in Function} address@hidden =} syl (@var{A}, @var{B}, @var{C}) ## -## @code{syl} is deprecated and will be removed in Octave version 4.6. +## @code{syl} is deprecated and will be removed in Octave version 4.4. ## Use @code{sylvester} for the equivalent functionality. ## ## Solve the Sylvester equation @@ -45,7 +45,7 @@ ## @end example ## @end deftypefn -## Deprecated in version 4.2 +## Deprecated in version 4.0 function x = syl (A, B, C) diff -r 3da4b083e0b8 scripts/deprecated/usage.m --- a/scripts/deprecated/usage.m Tue Jan 27 18:55:25 2015 +0100 +++ b/scripts/deprecated/usage.m Fri Jan 30 14:01:39 2015 -0800 @@ -19,7 +19,7 @@ ## -*- texinfo -*- ## @deftypefn {Built-in Function} {} usage (@var{msg}) ## -## @code{usage} is deprecated and will be removed in Octave version 4.6. +## @code{usage} is deprecated and will be removed in Octave version 4.4. ## Please use @code{print_usage} in all new code. ## ## Print the message @var{msg}, prefixed by the string @samp{usage: }, and @@ -49,7 +49,7 @@ ## @seealso{print_usage} ## @end deftypefn -## Deprecated in version 4.2 +## Deprecated in version 4.0 function retval = usage (varargin)