Re: [Numpy-discussion] Vectorizing "dot" on the two last axis

2008-10-11 Thread Gael Varoquaux
On Fri, Oct 10, 2008 at 09:03:14AM -0400, Anne Archibald wrote: > I am pretty sure that, unfortunately, there is no way to vectorize > this without an intermediate array substantially larger than either > the inputs or the outputs. OK, this is what I had found. > From a computational point of vie

Re: [Numpy-discussion] Vectorizing "dot" on the two last axis

2008-10-10 Thread Anne Archibald
2008/10/10 Gael Varoquaux <[EMAIL PROTECTED]>: > I have been unable to vectorize the following operation:: > >window_size = 10 >nb_windows = 819 >nb_clusters = 501 >restricted_series = np.random.random(size=(window_size, nb_clusters, >

[Numpy-discussion] Vectorizing "dot" on the two last axis

2008-10-10 Thread Gael Varoquaux
Hi list, I have been unable to vectorize the following operation:: window_size = 10 nb_windows = 819 nb_clusters = 501 restricted_series = np.random.random(size=(window_size, nb_clusters, nb_windows)) this_cov = np.zeros((nb