8000 ENH enable `__imatmul__` for ArrayAPI compatability. by Micky774 · Pull Request #21912 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Removed tests (redundant w/ tests in test_array_objects.py)
  • Loading branch information
Micky774 committed Jul 3, 2022
commit 21093fa6e9923e2c8e9599544697c99eb9b9e57c
6 changes: 0 additions & 6 deletions numpy/core/tests/test_multiarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -7127,12 +7127,6 @@ def test_matmul_inplace():
a @= a
assert_array_equal(a, 4*np.eye(3))

assert_raises(ValueError, a.__imatmul__, c)

import operator
assert_raises(ValueError, operator.imatmul, a, c)
assert_raises(ValueError, exec, "a @= c", globals(), locals())

def test_matmul_axes():
a = np.arange(3*4*5).reshape(3, 4, 5)
c = np.matmul(a, a, axes=[(-2, -1), (-1, -2), (1, 2)])
Expand Down
0