You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Numpy passes invalid arguments to DGEMV when stride = 0 #12156
When performing a numpy.matmul with a vector, whose stride is 0, Numpy will pass an invalid argument to the LAPACK function DGEMV. More specifically, the incx argument of DGEMV cannot be 0.
I tested it on 2 platforms (see the version section below).
On 1.15.2 Linux:
Traceback (most recent call last):
File "tmp.py", line 4, in <module>
np.matmul(a, b)
ValueError: On entry to DGEMV parameter number 8 had an illegal value
On 1.13.3 Windows:
** On entry to DGEMV parameter number 8 had an illegal value
This is something to look at when revisiting PR #11133 which will finally convert matmul to a ufunc. It seems add and einsum are not succeptible to this, but dot is.
Activity
mattip commentedon Oct 12, 2018
This is something to look at when revisiting PR #11133 which will finally convert matmul to a ufunc. It seems
addandeinsumare not succeptible to this, butdotis.mattip commentedon Nov 9, 2018
PR #12219 has code that fixes this for matmul.