summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Blocker <cameronjblocker@gmail.com>2020-07-24 17:39:23 -0400
committerCameron Blocker <cameronjblocker@gmail.com>2020-07-24 17:39:23 -0400
commitfe708577504f590d1c51f8505296686ea0106efa (patch)
treea12c9a4dff3bfbc602f26b9a7665322160668f43
parent7a3962dddd619ede248558da9de7d0d1a196d938 (diff)
downloadnumpy-fe708577504f590d1c51f8505296686ea0106efa.tar.gz
DOC: add release note for #16815
-rw-r--r--doc/release/upcoming_changes/16815.compatibility.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/16815.compatibility.rst b/doc/release/upcoming_changes/16815.compatibility.rst
new file mode 100644
index 000000000..4089b16d1
--- /dev/null
+++ b/doc/release/upcoming_changes/16815.compatibility.rst
@@ -0,0 +1,8 @@
+`mgrid`, `r_`, etc. fixed to consistently return correct outputs for non-default precision inputs
+-------------------------------------------------------------------------------------------------
+Previously, ``np.mgrid[np.float32(0.1):np.float32(0.35):np.float32(0.1),]``
+and ``np.r_[0:10:np.complex64(3j)]`` failed to return meaningful output.
+This bug potentially affects `mgrid`, `ogrid`, `r_`, and `c_` when an
+input with dtype other than the default `float64` and `complex128`
+and equivalent Python types were used.
+The methods have been fixed to handle varying precision correctly.