[pypy-issue] [issue1161] numpypy.bool missing (numpy boolean dtype)
mikefc
tracker at bugs.pypy.org
Sun Jun 10 00:31:08 CEST 2012
mikefc <coolbutuseless at gmail.com> added the comment:
There is a "bool_" and an "int_" type, which do what you want.
I don't know why they're named differently:
>>>> np.zeros([4,4], np.bool_)
array([[False, False, False, False],
[False, False, False, False],
[False, False, False, False],
[False, False, False, False]], dtype=bool)
>>>> np.zeros([4,4], np.int_)
array([[0, 0, 0, 0],
[0, 0, 0, 0],
[0, 0, 0, 0],
[0, 0, 0, 0]])
----------
nosy: +mikefc
status: unread -> chatting
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1161>
________________________________________
More information about the pypy-issue
mailing list