summaryrefslogtreecommitdiff
path: root/numpy/typing
diff options
context:
space:
mode:
authorPedro Lameiras <87664900+JLameiras@users.noreply.github.com>2023-03-28 10:31:54 +0100
committerGitHub <noreply@github.com>2023-03-28 11:31:54 +0200
commit94d4f702017be274acb130cbe9cf163910137fbc (patch)
treedaf4886a782d7987ad56effdbb792f7b40aa6ab4 /numpy/typing
parent08e778407064c37d6f814e0c59065344dea1ec2a (diff)
downloadnumpy-94d4f702017be274acb130cbe9cf163910137fbc.tar.gz
BUG: Use output when given on numpy.dot C-API branch (#23459)
Updated the dot function C-API so that it now calls `np.multiply` with `out=` and returns it on branch of the function where the correct behaviour was not in place. Added two tests regarding this issue. Closes #21081. Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
Diffstat (limited to 'numpy/typing')
-rw-r--r--numpy/typing/tests/data/pass/ndarray_misc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/typing/tests/data/pass/ndarray_misc.py b/numpy/typing/tests/data/pass/ndarray_misc.py
index 19a1af9e2..6beacc5d7 100644
--- a/numpy/typing/tests/data/pass/ndarray_misc.py
+++ b/numpy/typing/tests/data/pass/ndarray_misc.py
@@ -150,7 +150,7 @@ A.argpartition([0])
A.diagonal()
A.dot(1)
-A.dot(1, out=B0)
+A.dot(1, out=B2)
A.nonzero()