summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2011-08-15 14:56:43 -0700
committerCharles Harris <charlesr.harris@gmail.com>2011-08-27 07:26:54 -0600
commitc7c080a72d05b3ec0cb93ab4f724f8b65ebf63c3 (patch)
tree83cbd2217b191ae7df59d4f1c2212b79cd7d53c3 /numpy
parent7fc4021464d529ba8f7b11ac46d1e1535075371b (diff)
downloadnumpy-c7c080a72d05b3ec0cb93ab4f724f8b65ebf63c3.tar.gz
DOC: missingdata: Add some NA mask info to the documentation
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/include/numpy/ndarraytypes.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/numpy/core/include/numpy/ndarraytypes.h b/numpy/core/include/numpy/ndarraytypes.h
index b1da9c4fb..0e91a31df 100644
--- a/numpy/core/include/numpy/ndarraytypes.h
+++ b/numpy/core/include/numpy/ndarraytypes.h
@@ -1548,6 +1548,18 @@ PyArray_SETITEM(PyArrayObject *arr, char *itemptr, PyObject *v)
(PyArrayObject *)(obj))
#endif
+static NPY_INLINE PyArray_Descr *
+PyArray_DTYPE(PyArrayObject *arr)
+{
+ return ((PyArrayObject_fieldaccess *)arr)->descr;
+}
+
+static NPY_INLINE npy_intp *
+PyArray_SHAPE(PyArrayObject *arr)
+{
+ return ((PyArrayObject_fieldaccess *)arr)->dimensions;
+}
+
/*
* Enables the specified array flags. Does no checking,
* assumes you know what you're doing.