Mercurial > octave
view etc/NEWS.8.md @ 30902:972959edc3ff
Allow sub2ind() to accept indices outside the size of the input subscripts (bug #62184)
* NEWS.8.md: Announce change in Matlab Compatibility section.
* sub2ind.cc: Add '#include "utility"' for access to std::swap.
* sub2ind.cc (Fsub2ind): Check nargout to figure out ndims of output.
For special case of vector (1-dimension), put in code to guarantee a
row vector output. Add BIST tests for bug #62184. Remove input
validation BIST which no longer applies.
* Array-util.cc (ind2sub): Remove input validation requiring index to
be within range of subscript size. Adjust code to put all remaining
elements in the final output dimension.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 05 Apr 2022 15:12:34 -0700 |
parents | 6ddc9c9bab50 |
children | ec5b57af230a |
line wrap: on
line source
Summary of important user-visible changes for version 8 (yyyy-mm-dd): --------------------------------------------------------------------- ### General improvements - Octave's libraries are now built using symbol visibility by default. That means that less symbols are exported from these libraries. Configure with `--disable-lib-visibility-flags` to export all symbols (as in previous versions). ### Graphical User Interface ### Graphics backend ### Matlab compatibility - `sub2ind` now supports index values outside of the size specified by the subscripts. - `cylinder` now accepts a scalar for the radius argument. - `clock` now has an optional second output `ISDST` which indicates if Daylight Savings Time is in effect for the system's time zone. ### Alphabetical list of new functions added in Octave 8 ### Deprecated functions, properties, and operators The following functions and properties have been deprecated in Octave 8 and will be removed from Octave 10 (or whatever version is the second major release after 8): - Functions Function | Replacement -----------------------|------------------ `shift` | `circshift` `sparse_auto_mutate` | none (see below) - The `sparse_auto_mutate` function no longer has any effect on Octave's behavior. Previously, after calling `sparse_auto_mutate (true)`, Octave would automatically convert sparse matrices to full when a sparse matrix required more memory than simply using full matrix storage. This setting was `false` by default for compatibility with Matlab. Now you must manually convert to full storage when desired. The following functions were deprecated in Octave 6 and have been removed from Octave 8. - Functions Function | Replacement -----------------------|------------------ `runtests` | `oruntests` - The environment variable used by `mkoctfile` for linker flags is now `LDFLAGS` rather than `LFLAGS`. `LFLAGS` was deprecated in Octave 6, and will be removed in a future version of Octave. ### Old release news - [Octave 7.x](etc/NEWS.7) - [Octave 6.x](etc/NEWS.6) - [Octave 5.x](etc/NEWS.5) - [Octave 4.x](etc/NEWS.4) - [Octave 3.x](etc/NEWS.3) - [Octave 2.x](etc/NEWS.2) - [Octave 1.x](etc/NEWS.1)