Re: [Numpy-discussion] inconsistency in 10**(-2) or 10**array([-2])

2010-08-18 Thread Roberto De Almeida
Hi, Mark. I think the problem is that array([-2]) is an array of integers, so the result is also an array of integers. It works fine with array([-2.0]). --Rob On Wed, Aug 18, 2010 at 9:42 AM, Mark Bakker wrote: > Hello list, > > When I do 10**-2, Python nicely returns 0.02 > > But with numpy (

Re: [Numpy-discussion] setting element

2008-11-12 Thread Roberto De Almeida
On Wed, Nov 12, 2008 at 4:36 PM, Gabriel Gellner <[EMAIL PROTECTED]>wrote: > On Wed, Nov 12, 2008 at 12:34:51PM -0600, Ryan May wrote: > > Charles سمير Doutriaux wrote: > > > Hello, > > > > > > I'm wondering if there's aquick way to do the following: > > > > > > s[:,5]=value > > > > > > in a "gene

Re: [Numpy-discussion] problem with factorial?

2008-05-09 Thread Roberto De Almeida
On Fri, May 9, 2008 at 10:53 AM, Neal Becker <[EMAIL PROTECTED]> wrote: > I noticed my fact function: > from scipy.special import gamma > def fact(x): > return gamma (x+1) > > Looks like there's a conflict in scipy over the name 'gamma' (I guess this > was pulled in later in my script when I did '

Re: [Numpy-discussion] Problem compiling numpy with Python 2.5 on Powerbook

2007-03-15 Thread Roberto De Almeida
Hi, Steve. On 3/14/07, Steve Lianoglou <[EMAIL PROTECTED]> wrote: > I'm not sure what the problem is exactly, but is it weird that > there's something to do w/ 'i686' when you're running on a powerbook > being that the pbook is PowerPC? I managed to compile numpy by first compiling Python 2.5 as