[Numpy-discussion] numpy dot returns [nan nan nan]
Tom Bennett
tom.bennett at mail.zyzhu.net
Sat Aug 24 13:13:52 EDT 2013
Hi All,
I have two arrays, A and B.A is 3 x 100,000 and B is 100,000. If I do
np.dot(A,B), I get [nan, nan, nan].
However, np.any(np.isnan(A))==False and np.any(no.isnan(B))==False. And
also np.seterr(all='print') does not print anything.
I am not wondering what is going on and how to avoid.
In case it is important, A and B are from the normal equation of doing
regression. I am regressing 100,000 observations on 3 100,000 long factors.
Thanks,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20130824/77b7b7f6/attachment.html>
More information about the NumPy-Discussion
mailing list