Should `np.ndarray.bit_count()` exist? I tend against this;
Thanks for the info Sebastian, I agree with this as we can stick to what Python offers.
Should `np.bit_count` exist? Having it on the int* types may be sufficient.
Hey Stephan, regarding this, I felt we could support it in the same lines
NumPy Mathematical Functions, something like GCD perhaps, where we do not have `np.ndarray.gcd` but do have an `np.gcd`
What is the max value of the count? 64? If so it can go in a uint8.
This makes sense yeah, will make this change, thanks for the suggestion.
Also, an interesting future proposal can be to club all the bitwise functions into a single "namespace" of sorts and have np.bits.*. This has already been suggested in this
comment and I feel this would be a clean addition and we can support other useful functions as well.
Regards,
Ganesh