ibinary_repr¶
-
hep_spt.
ibinary_repr
(arg)[source]¶ Get the binary representation of the given value(s). This function is equivalent to
numpy.binary_repr()
, but the returned value is an integer.- Parameters
arg (int or numpy.ndarray(int)) – array of values.
- Returns
Values in binary representation (as integers).
- Return type
numpy.ndarray(numpy.int64)
Warning
Note that the binary representation of any number turn very large. For example, for a number like 10000, the binary representation is 10011100010000. No error/warning will be raised if the maximum value for a
numpy.int64
is reached.