From 94d4f702017be274acb130cbe9cf163910137fbc Mon Sep 17 00:00:00 2001 From: Pedro Lameiras <87664900+JLameiras@users.noreply.github.com> Date: Tue, 28 Mar 2023 10:31:54 +0100 Subject: 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 --- numpy/typing/tests/data/pass/ndarray_misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/typing') 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() -- cgit v1.2.1