annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30458
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
1 Summary of important user-visible changes for version 8 (yyyy-mm-dd):
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
2 ---------------------------------------------------------------------
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
3
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
4 ### General improvements
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
5
30550
c24457a42219 maint: merge stable to default.
Markus Mützel <markus.muetzel@gmx.de>
parents: 30466
diff changeset
6 - Octave's libraries are now built using symbol visibility by default.
c24457a42219 maint: merge stable to default.
Markus Mützel <markus.muetzel@gmx.de>
parents: 30466
diff changeset
7 That means that less symbols are exported from these libraries.
c24457a42219 maint: merge stable to default.
Markus Mützel <markus.muetzel@gmx.de>
parents: 30466
diff changeset
8 Configure with `--disable-lib-visibility-flags` to export all symbols
c24457a42219 maint: merge stable to default.
Markus Mützel <markus.muetzel@gmx.de>
parents: 30466
diff changeset
9 (as in previous versions).
c24457a42219 maint: merge stable to default.
Markus Mützel <markus.muetzel@gmx.de>
parents: 30466
diff changeset
10
30458
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
11
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
12 ### Graphical User Interface
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
13
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
14
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
15 ### Graphics backend
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
16
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
17
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
18 ### Matlab compatibility
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
19
30902
972959edc3ff Allow sub2ind() to accept indices outside the size of the input subscripts (bug #62184)
John W. Eaton <jwe@octave.org>
parents: 30876
diff changeset
20 - `sub2ind` now supports index values outside of the size specified by
972959edc3ff Allow sub2ind() to accept indices outside the size of the input subscripts (bug #62184)
John W. Eaton <jwe@octave.org>
parents: 30876
diff changeset
21 the subscripts.
972959edc3ff Allow sub2ind() to accept indices outside the size of the input subscripts (bug #62184)
John W. Eaton <jwe@octave.org>
parents: 30876
diff changeset
22
30876
6ddc9c9bab50 NEWS.8.md: Add notes to Matlab Compatibility section.
Rik <rik@octave.org>
parents: 30815
diff changeset
23 - `cylinder` now accepts a scalar for the radius argument.
6ddc9c9bab50 NEWS.8.md: Add notes to Matlab Compatibility section.
Rik <rik@octave.org>
parents: 30815
diff changeset
24
6ddc9c9bab50 NEWS.8.md: Add notes to Matlab Compatibility section.
Rik <rik@octave.org>
parents: 30815
diff changeset
25 - `clock` now has an optional second output `ISDST` which indicates if
6ddc9c9bab50 NEWS.8.md: Add notes to Matlab Compatibility section.
Rik <rik@octave.org>
parents: 30815
diff changeset
26 Daylight Savings Time is in effect for the system's time zone.
30458
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
27
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
28 ### Alphabetical list of new functions added in Octave 8
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
29
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
30
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
31 ### Deprecated functions, properties, and operators
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
32
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
33 The following functions and properties have been deprecated in Octave 8
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
34 and will be removed from Octave 10 (or whatever version is the second
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
35 major release after 8):
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
36
30604
a5e92ddf0a4d doc: etc/NEWS.8.md: announce shift.m deprecation.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 30550
diff changeset
37 - Functions
a5e92ddf0a4d doc: etc/NEWS.8.md: announce shift.m deprecation.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 30550
diff changeset
38
a5e92ddf0a4d doc: etc/NEWS.8.md: announce shift.m deprecation.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 30550
diff changeset
39 Function | Replacement
a5e92ddf0a4d doc: etc/NEWS.8.md: announce shift.m deprecation.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 30550
diff changeset
40 -----------------------|------------------
a5e92ddf0a4d doc: etc/NEWS.8.md: announce shift.m deprecation.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 30550
diff changeset
41 `shift` | `circshift`
30815
3ee2fba50b72 * NEWS.8: Note change in sparse_auto_mutate.
John W. Eaton <jwe@octave.org>
parents: 30604
diff changeset
42 `sparse_auto_mutate` | none (see below)
30604
a5e92ddf0a4d doc: etc/NEWS.8.md: announce shift.m deprecation.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 30550
diff changeset
43
30876
6ddc9c9bab50 NEWS.8.md: Add notes to Matlab Compatibility section.
Rik <rik@octave.org>
parents: 30815
diff changeset
44 - The `sparse_auto_mutate` function no longer has any effect on Octave's
6ddc9c9bab50 NEWS.8.md: Add notes to Matlab Compatibility section.
Rik <rik@octave.org>
parents: 30815
diff changeset
45 behavior. Previously, after calling `sparse_auto_mutate (true)`,
6ddc9c9bab50 NEWS.8.md: Add notes to Matlab Compatibility section.
Rik <rik@octave.org>
parents: 30815
diff changeset
46 Octave would automatically convert sparse matrices to full when a
6ddc9c9bab50 NEWS.8.md: Add notes to Matlab Compatibility section.
Rik <rik@octave.org>
parents: 30815
diff changeset
47 sparse matrix required more memory than simply using full matrix
6ddc9c9bab50 NEWS.8.md: Add notes to Matlab Compatibility section.
Rik <rik@octave.org>
parents: 30815
diff changeset
48 storage. This setting was `false` by default for compatibility with
6ddc9c9bab50 NEWS.8.md: Add notes to Matlab Compatibility section.
Rik <rik@octave.org>
parents: 30815
diff changeset
49 Matlab. Now you must manually convert to full storage when desired.
30458
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
50
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
51 The following functions were deprecated in Octave 6 and have been removed
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
52 from Octave 8.
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
53
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
54 - Functions
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
55
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
56 Function | Replacement
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
57 -----------------------|------------------
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
58 `runtests` | `oruntests`
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
59
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
60 - The environment variable used by `mkoctfile` for linker flags is now
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
61 `LDFLAGS` rather than `LFLAGS`. `LFLAGS` was deprecated in Octave 6,
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
62 and will be removed in a future version of Octave.
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
63
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
64 ### Old release news
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
65
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
66 - [Octave 7.x](etc/NEWS.7)
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
67 - [Octave 6.x](etc/NEWS.6)
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
68 - [Octave 5.x](etc/NEWS.5)
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
69 - [Octave 4.x](etc/NEWS.4)
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
70 - [Octave 3.x](etc/NEWS.3)
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
71 - [Octave 2.x](etc/NEWS.2)
df7feab99999 maint: etc/NEWS.8 make Markdown file.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
72 - [Octave 1.x](etc/NEWS.1)