diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-05-13 17:18:02 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-07-16 14:40:20 -0500 |
commit | 4e8e9284719ffc3f2add7ef4e23b33569c223689 (patch) | |
tree | f0692bc8ede245a1fe4516469a4c8d98cbcfe5c5 /doc/release | |
parent | 651862dd75db99dc4abcaf91e82ca21cf1309d08 (diff) | |
download | numpy-4e8e9284719ffc3f2add7ef4e23b33569c223689.tar.gz |
DEP: Deprecate ufunc.outer with matrix inputs
Previously we converted matrices to arrays for the user, since
`np.outer` does not make sense for matrix. This deprecates that
usage (which in almost all cases will result in an error).
The main reason for this deprecation is to remove all direct
references of matrix from the NumPy codebase, so that it is
easier to move it out of NumPy eventually.
Diffstat (limited to 'doc/release')
-rw-r--r-- | doc/release/upcoming_changes/16232.deprecation.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/16232.deprecation.rst b/doc/release/upcoming_changes/16232.deprecation.rst new file mode 100644 index 000000000..d1ac7f044 --- /dev/null +++ b/doc/release/upcoming_changes/16232.deprecation.rst @@ -0,0 +1,6 @@ +``outer`` and ``ufunc.outer`` deprecated for matrix +--------------------------------------------------- +``np.matrix`` use with `~numpy.outer` or generic ufunc outer +calls such as ``numpy.add.outer``. Previously, matrix was +converted to an array here. This will not be done in the future +requiring a manual conversion to arrays. |