[Numpy-discussion] Bug: np.linalg.qr crash the python interpreter if getting a shape (0, x) array.

Till Stensitzki mail.till at gmx.de
Fri May 6 11:30:32 EDT 2011


Hi,
discovered another small bug. Windows 7 32 bit, Python 2.6.

In [1]: np.__version__
Out[1]: '1.5.1'

In [2]: a=np.zeros((0,2))

In [3]: np.linalg.qr(a)
 ** On entry to DGEQRF parameter number  4 had an illegal value


--Here python is crashed.
While np.linalg.lstsq doesn't crashs, the error message is not very helpfull.

greetings Till




More information about the NumPy-Discussion mailing list