Skip to content

Commit 6d72687

Browse files
committed
NEWS: Move scalar index dropping to breaking changes
ref #13612 (comment)
1 parent 8e3def3 commit 6d72687

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

NEWS.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ Breaking changes
106106

107107
This section lists changes that do not have deprecation warnings.
108108

109+
* All dimensions indexed by scalars are now dropped, whereas previously only
110+
trailing scalar dimensions would be omitted from the result ([#13612]). This
111+
is a very major behavioral change, but should cause obvious failures. To retain
112+
a dimension sliced with a scalar `i` slice with `i:i` instead.
113+
109114
* The assignment operations `.+=`, `.*=` and so on now generate calls
110115
to `broadcast!` on the left-hand side (or call to `view(a, ...)` on the left-hand side
111116
if the latter is an indexing expression, e.g. `a[...]`). This means that they will fail
@@ -191,11 +196,6 @@ Library improvements
191196

192197
* Arrays and linear algebra:
193198

194-
* All dimensions indexed by scalars are now dropped, whereas previously only
195-
trailing scalar dimensions would be omitted from the result ([#13612]). This
196-
is a very major behavioral change, but should cause obvious failures. To retain
197-
a dimension sliced with a scalar `i` slice with `i:i` instead.
198-
199199
* Dimensions indexed by multidimensional arrays add dimensions. More generally, the
200200
dimensionality of the result is the sum of the dimensionalities of the indices ([#15431]).
201201

0 commit comments

Comments
 (0)