
26 Jul
2001
26 Jul
'01
2:41 p.m.
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@caltech.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter