[Numpy-discussion] Numpy on App Engine

2012-02-28 Thread Tom K .
Congrats, numpy is now available on the Google App Engine: http://googleappengine.blogspot.in/2012/02/announcing-general-availability-of.html ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-dis

Re: [Numpy-discussion] interrupting large matrix operations

2010-09-10 Thread Tom K.
David Cournapeau wrote: > >> (I'm running ancient numpy and python at work, so if this is already >> supported in later versions, my apologies) > > What does ancient mean ? Could you give us the version (numpy.__version__) > > 1.0.4 Python 2.4.2 IPython 0.9.1 -- View this message in contex

[Numpy-discussion] interrupting large matrix operations

2010-09-10 Thread Tom K.
ike to hit "control-c" and get out of this hung state. What would it take to support this? (I'm running ancient numpy and python at work, so if this is already supported in later versions, my apologies) - Tom K. -- View this message in context: http://old.nabble.com/interruptin

[Numpy-discussion] indexing question

2010-03-30 Thread Tom K.
This one bit me again, and I am trying to understand it better so I can anticipate when it will happen. What I want to do is get rid of singleton dimensions, and index into the last dimension with an array. In [1]: import numpy as np In [2]: x=np.zeros((10,1,1,1,14,1024)) In [3]: x[:,0,0,0,:

Re: [Numpy-discussion] arange including stop value?

2010-03-11 Thread Tom K.
davefallest wrote: > > ... > In [3]: np.arange(1.01, 1.1, 0.01) > Out[3]: array([ 1.01, 1.02, 1.03, 1.04, 1.05, 1.06, 1.07, 1.08, > 1.09, 1.1 ]) > > Why does the ... np.arange command end up including my stop value? > >From the help for arange: For floating point arguments,

[Numpy-discussion] ANN: upfirdn 0.2.0

2010-01-02 Thread Tom K.
ANNOUNCEMENT I am pleased to announce a new release of "upfirdn" - version 0.2.0. This package provides an efficient polyphase FIR resampler object (SWIG-ed C++) and some python wrappers. This release greatly improves installation with distutils relative to the initial 0.1.0 release. 0.2.0 incl

[Numpy-discussion] ANN: upfirdn 0.1.0

2009-12-05 Thread Tom K.
(also posted on scipy-user) ANNOUNCEMENT I am pleased to announce the initial release of "upfirdn." This package provides an efficient polyphase FIR resampler object (SWIG-ed C++) and some python wrappers. https://opensource.motorola.com/sf/projects/upfirdn MOTIVATION As a long time us

Re: [Numpy-discussion] A numpy accumulator...

2009-10-05 Thread Tom K.
giving a knob means people are going to set it wrong. I would also vote "+1" for an ND version of this (growing only a single dimension). Keeping 2x for each of n dimensions, while conceivable, would be 2**n extra memory, and hence probably too costly. Cheers, Tom K. -- View th

Re: [Numpy-discussion] matrix default to column vector?

2009-06-14 Thread Tom K.
jseabold wrote: > > On Mon, Jun 8, 2009 at 3:33 PM, Robert Kern wrote: >> On Mon, Jun 8, 2009 at 14:10, Alan G Isaac wrote: > Going back to Alan Isaac's example: > 1)  beta = (X.T*X).I * X.T * Y > 2)  beta = np.dot(np.dot(la.inv(np.dot(X.T,X)),X.T),Y) >>> >>> >>> Robert Kern wrote:

Re: [Numpy-discussion] Howto vectorise a dot product ?

2009-06-10 Thread Tom K.
bruno Piguet wrote: > >Can someone point me to a doc on dot product vectorisation ? > As I posted in the past you can try this one liner: "numpy.array(map(numpy.dot, a, b)) that works for matrix multiply if a, b are (n, 3, 3). " This would also work if a is (n, 3, 3) and b is (n, 3

Re: [Numpy-discussion] matrix default to column vector?

2009-06-07 Thread Tom K.
Robert Kern-2 wrote: > > On Sun, Jun 7, 2009 at 07:20, Tom K. wrote: >> Going back to Alan Isaac's example: >> 1)  beta = (X.T*X).I * X.T * Y > ... > 4) beta = la.lstsq(X, Y)[0] > > I really hate that example. > Understood. Maybe propose

Re: [Numpy-discussion] matrix default to column vector?

2009-06-07 Thread Tom K.
What do we want to do? How can we convince the larger python community that this is a good idea for them too? Cheers, Tom K. -- View this message in context: http://www.nabble.com/matrix-default-to-column-vector--tp23652920p23914277.html Sent from the Numpy-discussion mailing list archive at Nabble.

Re: [Numpy-discussion] matrix default to column vector?

2009-06-07 Thread Tom K.
might need a new .T that just swaps the last two dimensions to really pull that off). But a ".I" attribute and its behavior needn't be bundled with whatever proposal we wish to make to the python community for a new operator of course. Regards, Tom K. -- View this message in cont

Re: [Numpy-discussion] matrix default to column vector?

2009-06-06 Thread Tom K.
t dimension of the right array, so shape (a0, ..., aL-1,k) @ (k, b0, ..., bM-1) --> (a0, ..., aL-1, b0, ..., bM-1) Does that make sense? With this proposal, matrices go away and all our lives are sane again. :-) Long live the numpy ndarray! Thanks to the creators for all your hard w

Re: [Numpy-discussion] matrix default to column vector?

2009-05-24 Thread Tom K.
Jason Rennie-2 wrote: > > By default, it looks like a 1-dim ndarray gets converted to a row vector > by > the matrix constructor. This seems to lead to some odd behavior such as > a[1] yielding the 2nd element as an ndarray and throwing an IndexError as > a > matrix. Is it possible to set a fl

Re: [Numpy-discussion] Array of matrices - Inverse and dot

2009-01-26 Thread Tom K.
n Numpy. I haven't looked too much "under the hood" of numpy so I am not sure how you would do it or how hard it would be. Regards, Tom K. -- View this message in context: http://www.nabble.com/Array-of-matrices---Inverse-and-dot-tp2166

[Numpy-discussion] Is this an indexing bug?

2007-06-15 Thread Tom K.
>>> h = zeros((1, 4, 100)) >>> h[0,:,arange(14)].shape (14, 4) ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion