[Numpy-discussion] lstsq illegal instruction

Angus McMorland amcmorl@gmail....
Wed Nov 18 15:15:49 CST 2009


Hi all,

Whenever I run numpy.linalg.lstsq with a xs parameter with both
dimensions larger than 128, I get an "Illegal instruction" and python
dies completely. It happens with both the Ubuntu jaunty standard numpy
1.2.1, and a recent svn 1.4.0.dev7727, but it doesn't seem to happen
on any other machines. Anyone have any idea what might be causing
this? It's most annoying.

The crash can be recreated with the following four lines:
import numpy as np
xs = np.random.random(size=(129, 129))
y = np.random.random(size=(129,))
res = np.linalg.lstsq(xs,y)

Thanks,

Angus.
-- 
AJC McMorland
Post-doctoral research fellow
Neurobiology, University of Pittsburgh


More information about the NumPy-Discussion mailing list