[Numpy-discussion] floor with dtype

Renato Fabbri renato.fabbri at gmail.com
Mon Sep 25 04:59:51 EDT 2017


"""
In [3]: n.floor(n.linspace(0,5,7), dtype=n.int)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-3-1471f5d738e8> in <module>()
----> 1 n.floor(n.linspace(0,5,7), dtype=n.int)

TypeError: No loop matching the specified signature and casting
was found for ufunc floor

In [4]: n.__version__
Out[4]: '1.11.0'
"""

Is this the expected behavior?

I am doing:
>>> myints = n.array(n.floor(myarray), dtype=n.int)
to get the integers.

tx.
R.


-- 
Renato Fabbri
GNU/Linux User #479299
labmacambira.sourceforge.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20170925/35755798/attachment.html>


More information about the NumPy-Discussion mailing list