bit_length¶
-
hep_spt.
bit_length
(arg)[source]¶ Get the length of the binary representation of the given value(s). This function is equivalent to
int.bit_length()
, but can take arrays as an input.- Parameters
arg (int or numpy.ndarray(int)) – array of values.
- Returns
length of the binary representation.
- Return type