From the NumPy docs for ceil , the numpy.ceil
function takes two arguments, the second being out
. The docs don't say what this out
parameter does but I assume you can set the output type this function returns, but I cannot get it to work:
In [107]: np.ceil(5.5, 'int')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-107-c05bcf9f1522> in <module>()
----> 1 np.ceil(5.5, 'int')
TypeError: return arrays must be of ArrayType
In [108]: np.ceil(5.5, 'int64')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-108-0937d09b0433> in <module>()
----> 1 np.ceil(5.5, 'int64')
TypeError: return arrays must be of ArrayType
Is it possible to use this argument to make np.ceil
return an integer?
Thanks.