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.
/13, Tom Bennett tom.benn...@mail.zyzhu.net wrote:
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
Hi,
I am trying to extract n columns from an 2D array and then operate on the
extracted columns. Below is the code:
A is an MxN 2D array.
u = A[:,:n] #extract the first n columns from A
B = np.dot(u, u.T) #take outer product.
This code works when n1. However, when n=1, u becomes an 1D array
warren.weckes...@gmail.com wrote:
On Sun, Nov 25, 2012 at 8:24 PM, Tom Bennett
tom.benn...@mail.zyzhu.netwrote:
Hi,
I am trying to extract n columns from an 2D array and then operate on the
extracted columns. Below is the code:
A is an MxN 2D array.
u = A[:,:n] #extract the first n columns