File: arrayobject.h

package info (click to toggle)
python-numarray 1.5.2-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,668 kB
  • ctags: 11,384
  • sloc: ansic: 113,864; python: 22,422; makefile: 197; sh: 11
file content (22 lines) | stat: -rw-r--r-- 583 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#if !defined(__arrayobject_h)
#define __arrayobject_h

#if defined(PY_ARRAY_UNIQUE_SYMBOL) 
#define libnumeric_UNIQUE_SYMBOL PY_ARRAY_UNIQUE_SYMBOL
#define PyArray_API PY_ARRAY_UNIQUE_SYMBOL
#else
#define PyArray_API  libnumeric_API
#endif

#define import_array() import_libnumeric();

/*  Deprecated:  If you're not already using them, not recommended. 
The following macros are not in Numeric.
*/
#define PyArray_Present()        (PyArray_API != NULL)
#define PyArray_isArray(o)       (PyArray_Present() && PyArray_Check(o))

#include "arraybase.h"
#include "libnumeric.h"

#endif