8000 ENH: Implement np.iinfo(np.bool_) · Issue #8849 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: Implement np.iinfo(np.bool_) #8849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
eric-wieser opened this issue Mar 27, 2017 · 1 comment
Open

ENH: Implement np.iinfo(np.bool_) #8849

eric-wieser opened this issue Mar 27, 2017 · 1 comment

Comments

@eric-wieser
Copy link
Member

Does this make sense, and/or is it desirable?

b = np.iinfo(np.bool_)
assert(b.min == 0)
assert(b.max == 1)
assert(b.bits == ???)
@charris
Copy link
Member
charris commented May 8, 2017

Seems reasonable as booleans are promoted to integers during arithmetic with integers and also work with the standard comparison operators.

k-dominik added a commit to NEUBIAS/training-resources that referenced this issue May 28, 2024
np.iinfo is not implemented for bool type (yet).

xref: numpy/numpy#8849
k-dominik added a commit to NEUBIAS/training-resources that referenced this issue May 28, 2024
np.iinfo is not implemented for bool type (yet).

xref: numpy/numpy#8849
k-dominik added a commit to NEUBIAS/training-resources that referenced this issue May 28, 2024
np.iinfo is not implemented for bool type (yet).

xref: numpy/numpy#8849
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0