From 825e80b3b31fb2f0e48e41d5817fe9b539655d32 Mon Sep 17 00:00:00 2001
From: Ulrik Sverdrup <bluss@users.noreply.github.com>
Date: Sat, 3 Aug 2024 19:42:29 +0200
Subject: [PATCH 1/2] Update changelog for ndarray 0.16 and ndarray-rand 0.15

---
 README.rst  |  4 ++--
 RELEASES.md | 12 ++++++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/README.rst b/README.rst
index a95ca3205..abac4c18e 100644
--- a/README.rst
+++ b/README.rst
@@ -135,8 +135,8 @@ Using system-installed dependencies can save a long time building dependencies.
 An example configuration using (compiled) netlib is shown below anyway::
 
     [dependencies]
-    ndarray = { version = "0.15.0", features = ["blas"] }
-    blas-src = { version = "0.8.0", default-features = false, features = ["netlib"] }
+    ndarray = { version = "0.16.0", features = ["blas"] }
+    blas-src = { version = "0.10.0", default-features = false, features = ["netlib"] }
 
 When this is done, your program must also link to ``blas_src`` by using it or
 explicitly including it in your code::
diff --git a/RELEASES.md b/RELEASES.md
index 1d310a835..04c7c9250 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -1,5 +1,5 @@
-Version 0.16.0 (Not yet released)
-=================================
+Version 0.16.0 (2024-08-03)
+===========================
 
 Featured Changes
 ----------------
@@ -11,6 +11,13 @@ Featured Changes
 New Features and Improvements
 -----------------------------
 
+- Check for aliasing in `RawViewMut::from_shape_ptr` with a debug assertion by [@bluss](https://github.com/bluss) [#1413](https://github.com/rust-ndarray/ndarray/pull/1413)
+- Allow aliasing in ArrayView::from_shape by [@bluss](https://github.com/bluss) [#1410](https://github.com/rust-ndarray/ndarray/pull/1410)
+- Remove deprecations from 0.15.x by [@bluss](https://github.com/bluss) [#1409](https://github.com/rust-ndarray/ndarray/pull/1409)
+- Make `CowArray` an owned storage array, require Clone bound for `into_shared` by [@jturner314](https://github.com/jturner314) [#1028](https://github.com/rust-ndarray/ndarray/pull/1028)
+- Change `NdProducer::Dim` of `axis_windows()` to `Ix1` by [@jonasBoss](https://github.com/jonasBoss) [#1305](https://github.com/rust-ndarray/ndarray/pull/1305)
+- Add `squeeze()` to dynamic dimension arrays by [@barakugav](https://github.com/barakugav) [#1396](https://github.com/rust-ndarray/ndarray/pull/1396)
+- Add `flatten`, `flatten_with_order` and `into_flat` to arrays by [@barakugav](https://github.com/barakugav) [#1397](https://github.com/rust-ndarray/ndarray/pull/1397)
 - Make compatible with thumbv6m-none-eabi by [@BjornTheProgrammer](https://github.com/BjornTheProgrammer) [#1384](https://github.com/rust-ndarray/ndarray/pull/1384)
 - `is_unique` for `ArcArray` by [@daniellga](https://github.com/daniellga) [#1399](https://github.com/rust-ndarray/ndarray/pull/1399)
 - Add `triu` and `tril` methods directly to ArrayBase by [@akern40](https://github.com/akern40) [#1386](https://github.com/rust-ndarray/ndarray/pull/1386)
@@ -50,6 +57,7 @@ New Features and Improvements
 Tests, CI and Maintainer tasks
 ------------------------------
 
+- CI: require rustfmt, nostd by [@bluss](https://github.com/bluss) [#1411](https://github.com/rust-ndarray/ndarray/pull/1411)
 - Prepare changelog for 0.16.0 by [@bluss](https://github.com/bluss) [#1401](https://github.com/rust-ndarray/ndarray/pull/1401)
 - Organize dependencies with workspace = true (cont.) by [@bluss](https://github.com/bluss) [#1407](https://github.com/rust-ndarray/ndarray/pull/1407)
 - Update to use dep: for features by [@bluss](https://github.com/bluss) [#1406](https://github.com/rust-ndarray/ndarray/pull/1406)

From b592995181dcbe11a2a2746edc61540cf480af4a Mon Sep 17 00:00:00 2001
From: Ulrik Sverdrup <bluss@users.noreply.github.com>
Date: Sat, 3 Aug 2024 19:43:42 +0200
Subject: [PATCH 2/2] Bump to ndarray 0.16 and ndarray-rand 0.15

---
 Cargo.toml               | 4 ++--
 ndarray-rand/Cargo.toml  | 2 +-
 ndarray-rand/RELEASES.md | 5 +++++
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index f1a7d4287..4c34a11bc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
 [package]
 
 name = "ndarray"
-version = "0.15.6"
+version = "0.16.0"
 edition = "2018"
 rust-version = "1.64"
 authors = [
@@ -91,7 +91,7 @@ default-members = [
 ]
 
 [workspace.dependencies]
-ndarray = { version = "0.15", path = "." }
+ndarray = { version = "0.16", path = "." }
 ndarray-rand = { path = "ndarray-rand" }
 
 num-integer = { version = "0.1.39", default-features = false }
diff --git a/ndarray-rand/Cargo.toml b/ndarray-rand/Cargo.toml
index 2824dbd07..b58e752a5 100644
--- a/ndarray-rand/Cargo.toml
+++ b/ndarray-rand/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "ndarray-rand"
-version = "0.14.0"
+version = "0.15.0"
 edition = "2018"
 authors = ["bluss"]
 license = "MIT OR Apache-2.0"
diff --git a/ndarray-rand/RELEASES.md b/ndarray-rand/RELEASES.md
index 8d7586fbe..cff9acd96 100644
--- a/ndarray-rand/RELEASES.md
+++ b/ndarray-rand/RELEASES.md
@@ -1,6 +1,11 @@
 Recent Changes
 --------------
 
+- 0.15.0
+
+  - Require ndarray 0.16
+  - Remove deprecated F32 by [@bluss](https://github.com/bluss) [#1409](https://github.com/rust-ndarray/ndarray/pull/1409)
+
 - 0.14.0
 
   - Require ndarray 0.15