Sebastian Haase wrote:
> Hi!
> I would like to hear about three tickets I submitted some time ago:
>
> Ticket #230 a**2 not executed as a*a if a.dtype = int32
> is this easy to fix ?
>
>
Fixed. Now, all arrays with a**2 are executed as a*a (float arrays are
still
executed as square(a) (is this needed)?
> Ticket #229 numpy.random.poisson(0) should return 0
> I hope there is agreement that the edge-case of 0 should/could be handled
> without raising an exception. I submitted a patch (please test first!)
> any comments on this one.
>
Fixed. This seems reasonable to me.
> Ticket #188 dtype should have nicer str representation
> Is this one now officially dead ?
> "<i4" is not intuitively readable ! '<i4' as repr() is OK
> but str() should rather return 'int32 (little endian)'
>
It's not necessarily dead, the problem is complexity of implementation
and more clarity about how all dtypes are supposed to be printed, not
just this particular example. A patch would be very helpful here. If
desired it could be implemented in _internal.py and called from there in
arrayobject.c
But, to get you thinking... How should the following be printed
dtype('c4')
dtype('a4,i8,3f4')
dtype('3f4')
-Travis
-------------------------------------------------------------------------
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 WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/numpy-discussion