[Numpy-discussion] References to Numerical Recipes in Numpy code

2013-05-08 Thread MACKEITH Andrew
The numpy libraries (numpy/core/machar.py, numpy/fft/info.py, numpy/lib/function_base.py) contain references to "Numerical Recipes: The Art of Scientific Computing". The book contains a licensing section which states "... Unlicensed transfer of Numerical Recipes programs to any other format is

Re: [Numpy-discussion] numpy.int32 is not subclass of int, but numpy.int64 is

2011-11-15 Thread MACKEITH Andrew
MACKEITH Andrew mailto:andrew.macke...@3ds.com>> From: numpy-discussion-boun...@scipy.org<mailto:numpy-discussion-boun...@scipy.org> [mailto:numpy-discussion-boun...@scipy.org<mailto:numpy-discussion-boun...@scipy.org>] On Behalf Of Olivier Delalleau Sent: Tuesday, November 1

Re: [Numpy-discussion] numpy.int32 is not subclass of int, but numpy.int64 is

2011-11-15 Thread MACKEITH Andrew
Robert Kern mailto:robert.k...@gmail.com>> On Mon, Nov 14, 2011 at 20:18, MACKEITH Andrew mailto:andrew.macke...@3ds.com>> wrote: > Could someone explain this? > > An instance of numpy.int32 is not an instance of int or > numpy.int<http://numpy.int>. > An instance of

[Numpy-discussion] numpy.int32 is not subclass of int, but numpy.int64 is

2011-11-14 Thread MACKEITH Andrew
Could someone explain this? An instance of numpy.int32 is not an instance of int or numpy.int. An instance of numpy.int64 is an instance of int and numpy.int. I don't know if it is a bug in my linux build. Andrew >python26 Python 2.6.2 (r262:71600, Jul 8 2010, 11:49:56) [GCC 4.1.2 20070115 (SU

[Numpy-discussion] NumPy equivalent to PyFloat_Check

2010-06-08 Thread MACKEITH Andrew
I am working in C, and I want to check whether a Python object (PyObject*) is a numpy float object. i.e. numpy.float32, numpy.float64 etc. I have looked at the docs and the NumPy Manual Part II C-API, but I am not sure which of the many type checking functions to use. Could someone please give