[Numpy-discussion] ceil returns real ?

Pauli Virtanen pav@iki...
Wed Jul 28 18:50:13 CDT 2010

Thu, 29 Jul 2010 01:16:14 +0200, Sturla Molden wrote:
>> Makes sense.  But couldn't a ``dtype`` argument still be useful?
> np.ceil(some_array).astype(int)

That's one temporary more. The dtype= argument for all ufuncs wouldn't 
probably hurt too much.

Pauli Virtanen

More information about the NumPy-Discussion mailing list