[Numpy-discussion] Boolean array formatting poll

Fernando Perez fperez at colorado.edu
Wed Sep 10 17:19:38 EDT 2003

Pearu Peterson wrote:
> Considering the number of `-1`s, how about
>>>>a=numarray.arange(6, type=numarray.Bool); a[::2] = 0; a
>  array([F, T, F, T, F, T], type=Bool)

Somehow I seem to parse faster 0/1 arrays than F/T (the symbols are visually 
more different).

-0.5, but better than the change to True/False.



More information about the NumPy-Discussion mailing list