[Numpy-discussion] round, floor and ceil ?
Robert Kern
kern at caltech.edu
Thu Jul 26 14:41:13 EDT 2001
On Thu, Jul 26, 2001 at 11:46:06AM -0700, Chris Barker wrote:
> Hi all,
>
> I was surprised to find that the functions:
>
> round, floor, and ceil are not included as ufuncs in NumPy.
>
> Have I just missed them? Where can I find them if they do exist?
Python 2.0.1 (#0, Jul 3 2001, 12:36:30)
[GCC 2.95.4 20010629 (Debian prerelease)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import Numeric
>>> print Numeric.__version__
20.1.0
>>> Numeric.floor
<ufunc 'floor'>
>>> Numeric.ceil
<ufunc 'ceil'>
>>> Numeric.around
<function around at 0x807439c>
The last one isn't a ufunc, but it's composed of them. I would guess that it's
a function so that it can match Python's rounding behavior.
--
Robert Kern
kern at caltech.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the NumPy-Discussion
mailing list