bionet.utils.numpy_extras.iround

bionet.utils.numpy_extras.iround(x)

Round an array to the nearest integer.

Parameters:

x : array_like

Input data.

Returns:

y : {numpy.ndarray, scalar}

The rounded elements in x, with int dtype.