[Numpy-discussion] Current ufunc signatures for review

Charles R Harris charlesr.harris@gmail....
Sun May 25 15:39:09 CDT 2008


On Sun, May 25, 2008 at 2:29 PM, Robert Kern <robert.kern@gmail.com> wrote:

> On Sun, May 25, 2008 at 1:12 PM, Charles R Harris
> <charlesr.harris@gmail.com> wrote:
> > Hi All,
> >
> > Here is the current behavior of the ufuncs and some comments. They don't
> yet
> > cover mixed types for binary functions,
> > but when they do we will see things like:
> >
> > In [7]: power(True,10)
> > Out[7]:
> > array([ 0.5822807 ,  0.66568381,  0.11748811,  0.97047323,  0.60095205,
> >         0.81218886,  0.0167618 ,  0.80544138,  0.59540082,  0.82414302])
> >
> > Which looks suspect ;)
>
> Very much so.
>
> >>> from numpy import *
> >>> power(True, 10)
> 1
>

Ah, it was a PyLab thing. I needed to update to the latest.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080525/b75e3ff5/attachment.html 


More information about the Numpy-discussion mailing list