8000 numpy.linalg.qr crashes with empty arrays (Trac #1244) · Issue #1842 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

numpy.linalg.qr crashes with empty arrays (Trac #1244) #1842

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
thouis opened this issue Oct 19, 2012 · 4 comments
Closed

numpy.linalg.qr crashes with empty arrays (Trac #1244) #1842

thouis opened this issue Oct 19, 2012 · 4 comments

Comments

@thouis
Copy link
Contributor
thouis commented Oct 19, 2012

Original ticket http://projects.scipy.org/numpy/ticket/1244 on 2009-09-29 by trac user chtito, assigned to unknown.

Simple test:

#!python
import numpy as np
a = np.zeros([0,2])
from numpy.linalg import qr
qr(a) # python crashes
@thouis thouis closed this as completed Oct 19, 2012
@numpy-gitbot
Copy link

trac user chtito wrote on 2009-09-29

See also [http://projects.scipy.org/scipy/ticket/1005 scipy ticket #1603].

@numpy-gitbot
Copy link

@charris wrote on 2009-10-03

What version of numpy are you using? I get

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

In [18]: qr(a)
---------------------------------------------------------------------------
LinAlgError                               Traceback (most recent call last)

...

LinAlgError: dgeqrf returns -4

@numpy-gitbot
Copy link

@rgommers wrote on 2010-07-24

Same here. That's still not the most informative error message though.

qr(a)
** On entry to DGEQRF, parameter number  4 had an illegal value
---------------------------------------------------------------------------
LinAlgError                               Traceback (most recent call last)

...

LinAlgError: dgeqrf returns -4

@numpy-gitbot
Copy link

@pv wrote on 2011-03-24

Works as expected, so closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0