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
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
>>>
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
> > 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]:
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
> >
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(
> * 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
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
+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
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
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
11 matches
Mail list logo