Mercurial > octave-libgccjit
view NEWS @ 18606:0ede4dbb37f1
Overhaul interp1, interp2, interp3 functions.
* NEWS: Announce change in 'cubic' interpolation method for interp2
to match Matlab.
* bicubic.m: Use interp2 (..., "spline") in %!tests.
* interp1.m: Improve docstring. Use switch statement instead of if/elseif tree
for simpler code. Use more informative error message than 'table too short'.
Add titles to demo plots. Add new demo block showing difference between 'pchip'
and 'spline' methods.
* interp2.m: Rewrite docstring. Use variable 'extrap' instead of 'extrapval' to
match documentation. Use clearer messages in error() calls. Make 'cubic' use
the same algorithm as 'pchip' for Matlab compatibility. Use Octave coding
conventions regarding spaces between variable and parenthesis. Added input
validation tests.
* interp3.m: Rewrite docstring. Use clearer messages in error() calls. Make
'cubic' use the same algorithm as 'pchip' for Matlab compatibility. Simplify
input processing. Rewrite some %!tests for clarity. Added input validation
tests.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 30 Mar 2014 14:18:43 -0700 |
parents | 13c80c3e9660 |
children | 7485f8a8e431 |
line wrap: on
line source
Summary of important user-visible changes for version 4.2: --------------------------------------------------------- ** Interpolation function changes for Matlab compatibility The interpolation method 'cubic' is now equivalent to 'pchip' for interp1, interp2, and interp3. Previously, 'cubic' was equivalent to 'spline' for interp2. This may produce different results as 'spline' has continuous 1st and 2nd derivatives while 'pchip' only has a continuous 1st derivative. ** Other new functions added in 4.2: dir_in_loadpath hgload hgsave numfields ** 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): find_dir_in_path nfields The following functions were deprecated in Octave 3.8 and have been removed from Octave 4.2. default_save_options java_new gen_doc_cache java_set interp1q java_unsigned_conversion isequalwithequalnans javafields java_convert_matrix javamethods java_debug re_read_readline_init_file java_get 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 static The following configuration variables were deprecated in Octave 3.8 and have been removed from Octave 4.2 CC_VERSION (now GCC_VERSION) CXX_VERSION (now GXX_VERSION) The internal class <Octave_map> was deprecated in Octave 3.8 and has been removed from Octave 4.2. Replacement classes are <octave_map> (struct array) or <octave_scalar_map> for a single structure. 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 --------------------------------------------------------- See NEWS.3 for old news.