diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2022-12-02 00:34:35 +0100 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2022-12-02 00:34:35 +0100 |
commit | 0bbe7dbf267cf835efcd514283815292bd94403f (patch) | |
tree | db74a0b3c3e3a2df91c2047283a16ef9c3239750 /numpy/core/src | |
parent | aaac45dbb0b3b91ec49ac9e2961538288c60fc89 (diff) | |
download | numpy-0bbe7dbf267cf835efcd514283815292bd94403f.tar.gz |
BUG: Remove self == res assert for inplace matmul
It appears that assertion is not true for bad __array_ufunc__
or similar implementations. And we have at least one test that runs
into it.
Diffstat (limited to 'numpy/core/src')
-rw-r--r-- | numpy/core/src/multiarray/number.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/numpy/core/src/multiarray/number.c b/numpy/core/src/multiarray/number.c index dcce26a2b..f7d6b2e3c 100644 --- a/numpy/core/src/multiarray/number.c +++ b/numpy/core/src/multiarray/number.c @@ -411,9 +411,7 @@ array_inplace_matrix_multiply(PyArrayObject *self, PyObject *other) "have at least one and the second at least two dimensions."); } } - else { - assert(res == (PyObject *)self); - } + return res; } |