next_power_2

hep_spt.next_power_2(arg)[source]

Calculate the next number(s) greater than that(those) given and being a power(s) of 2.

Parameters

arg (int or numpy.ndarray(int)) – input number(s).

Returns

Next power of 2 to the given number.

Return type

int or numpy.ndarray(int)