Re: [Numpy-discussion] Converting bool to float

2006-11-01 Thread Scott Ransom
On Wed, Nov 01, 2006 at 08:16:59PM -0700, Tim Hochberg wrote: > Travis Oliphant wrote: > > Robert Kern wrote: > >> Travis Oliphant wrote: > >> > >>> It looks like 1.0-x is doing the right thing. > >>> > >>> The problem is 1.0*x for matrices is going to float64. For arrays it > >>> returns float32

[Numpy-discussion] ix_ problem changing input arrays?

2006-10-23 Thread Scott Ransom
I believe that ix_() has recently begun modifying the shapes of its input arrays. For instance: Python 2.4.4c0 (#2, Jul 30 2006, 18:20:12) [GCC 4.1.2 20060715 (prerelease) (Debian 4.1.1-9)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy as N >>>

[Numpy-discussion] bug in oldnumeric module

2006-09-22 Thread Scott Ransom
argmin is currently defined as using the argmax method! >From numpy/oldnumeric/functions.py def argmin(x, axis=-1): return N.argmax(x, axis) Scott -- Scott M. RansomAddress: NRAO Phone: (434) 296-0320 520 Edgemont Rd. email: [EMAIL PROTECTED] Charlo

Re: [Numpy-discussion] arr.dtype.kind is 'i' for dtype=unit !?

2006-09-19 Thread Scott Ransom
> > Can anybody on a 64-bit system confirm? > > I'm on 64-bit Debian: > > In [11]: arr=N.arange(10,dtype=N.uint) > > In [12]: arr.dtype.kind > Out[12]: 'u' > > In [13]: arr.dtype.itemsize > Out[13]: 4 > > In [14]: arr=N.arange(10,dtype=N.long) > > In [15]: arr.dtype.kind > Out[15]: 'i' > > In [16]:

Re: [Numpy-discussion] arr.dtype.kind is 'i' for dtype=unit !?

2006-09-19 Thread Scott Ransom
On Tuesday 19 September 2006 14:46, Travis Oliphant wrote: > Sebastian Haase wrote: > > Hi, > > What are the possible values of > > arr.dtype.kind ? > > > > It seems that signed and unsigned are considered to be the same > > "kind" > > > arr=N.arange(10,dtype=N.uint) > arr.dtype.kind > >

Re: [Numpy-discussion] Args for rand and randn: call for a vote

2006-07-08 Thread Scott Ransom
On Sat, Jul 08, 2006 at 06:15:25PM -0500, Robert Kern wrote: > Pau Gargallo wrote: > > On 7/8/06, Robert Kern <[EMAIL PROTECTED]> wrote: > >> Ed Schofield wrote: > >>> * Should numpy.rand and numpy.randn accept sequences of dimensions as > >>> arguments, like rand((3,3)), as an alternative to rand(

Re: [Numpy-discussion] Args for rand and randn: call for a vote

2006-07-08 Thread Scott Ransom
> * Should numpy.rand and numpy.randn accept sequences of dimensions as > arguments, like rand((3,3)), as an alternative to rand(3,3)? +1 -- Scott M. RansomAddress: NRAO Phone: (434) 296-0320 520 Edgemont Rd. email: [EMAIL PROTECTED] Charlottesville, VA

Re: [Numpy-discussion] Time for beta1 of NumPy 1.0

2006-06-30 Thread Scott Ransom
On Fri, Jun 30, 2006 at 01:25:23PM -0600, Travis Oliphant wrote: > Robert Kern wrote: > > >Whatever else you do, leave arange() alone. It should never have accepted > >floats > >in the first place. > > > Actually, Robert makes a good point. arange with floats is > problematic. We should di

Re: [Numpy-discussion] Time for beta1 of NumPy 1.0

2006-06-30 Thread Scott Ransom
+1 for float64 for me as well. Scott On Fri, Jun 30, 2006 at 10:29:42AM -0400, Darren Dale wrote: > +1 for float64 > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSpher

Re: [Numpy-discussion] Don't like the short names like lstsq and irefft

2006-06-14 Thread Scott Ransom
On Wed, Jun 14, 2006 at 09:47:20PM -0700, Paul Dubois wrote: > And yes, I think FFT is a name. (:-> Exception for that. I agree. As are sinh, cosh, tanh, sinc, exp, log10 and various other very commonly used (and not only in programming) names. lstsq, eig, irefft, etc are not. Scott -- Scott

Re: [Numpy-discussion] Don't like the short names like lstsq and irefft

2006-06-14 Thread Scott Ransom
I'll add my 2 cents to this and agree with David. Arguments about how short name are important for interactive work are pretty bogus given the beauty of modern tab-completion. And I'm not sure what other arguments there are... Scott On Wed, Jun 14, 2006 at 11:13:25PM -0400, David M. Cooke wrot