Re: [Numpy-discussion] Interactive Shell/Editor/Workspace(variables)View/Plots

2009-06-08 Thread Jonno
On Mon, Jun 8, 2009 at 11:35 AM, Gökhan SEVER wrote: > Hello, > > To me, IPython is the right way to follow. Try "whos" to see what's in your > namespace. > > You may want see this instructional video (A Demonstration of the 'IPython' > Interactive Shell) to learn more about IPython's functionality

Re: [Numpy-discussion] Interactive Shell/Editor/Workspace(variables)View/Plots

2009-06-08 Thread Jonno
On Mon, Jun 8, 2009 at 11:39 AM, wrote: > > I'm using now pydee as my main shell to try out new scripts and I > don't have any problems with the plots. I'm creating plots the > standard way > from matplotlib import pyplot as plt > plt.plot(x,y) > > and I can close the poping up plot windows. > if

[Numpy-discussion] Interactive Shell/Editor/Workspace(variables)View/Plots

2009-06-08 Thread Jonno
w variables? I hope this is an acceptable place to post this. If not please let me know if you know a better place to ask. Cheers, Jonno. -- "If a theory can't produce hypotheses, can't be tested, can't be disproven, and can't make predictions, then it's not a the

Re: [Numpy-discussion] Combination of element-wise and matrix multiplication

2008-07-04 Thread Jonno
umpy.arange(16,32).reshape(2,2,4) > In [54]: c = numpy.array([numpy.dot(a[...,i],b[...,i]) for i in > xrange(a.shape[-1])]) > In [55]: c.shape > Out[55]: (4, 2, 2) > > Here c has shape (4,2,2) instead (2,2,4), but you got the idea! > > hth, > L. > > > On Thu, Jul 3, 2008

[Numpy-discussion] Combination of element-wise and matrix multiplication

2008-07-03 Thread Jonno
of x are created with element-wise math as so: x[0,0] = c*g+d*i x[0,1] = c*h+d*j x[1,0] = e*g+f*i x[1,1] = e*h+f*j What is the simplest way to do this? I ended up doing the matrix multiplication of a & b manually as above but this doesn't scale very nicely if a & b become larger in size