summaryrefslogtreecommitdiff
path: root/doc/source/reference/internals.code-explanations.rst
diff options
context:
space:
mode:
authorMark Wiebe <mwiebe@enthought.com>2011-07-06 17:00:13 -0500
committerCharles Harris <charlesr.harris@gmail.com>2011-07-06 16:24:14 -0600
commitbcdc5b54869a0855c2457ea9f315cbd768a339ee (patch)
treed599bf34eb7a380dd246da5b8e6140265ee6d625 /doc/source/reference/internals.code-explanations.rst
parentce78b8194069821a69a160754849b3232114ffe8 (diff)
downloadnumpy-bcdc5b54869a0855c2457ea9f315cbd768a339ee.tar.gz
DOC: c-api: Update to reflect array flag namespace change
Diffstat (limited to 'doc/source/reference/internals.code-explanations.rst')
-rw-r--r--doc/source/reference/internals.code-explanations.rst28
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/source/reference/internals.code-explanations.rst b/doc/source/reference/internals.code-explanations.rst
index cceb1a60d..580661cb3 100644
--- a/doc/source/reference/internals.code-explanations.rst
+++ b/doc/source/reference/internals.code-explanations.rst
@@ -41,20 +41,20 @@ called a rank-0 array), then the strides and dimensions variables are
NULL.
Besides the structural information contained in the strides and
-dimensions members of the :ctype:`PyArrayObject`, the flags contain important
-information about how the data may be accessed. In particular, the
-:cdata:`NPY_ALIGNED` flag is set when the memory is on a suitable boundary
-according to the data-type array. Even if you have a contiguous chunk
-of memory, you cannot just assume it is safe to dereference a data-
-type-specific pointer to an element. Only if the :cdata:`NPY_ALIGNED` flag is
-set is this a safe operation (on some platforms it will work but on
-others, like Solaris, it will cause a bus error). The :cdata:`NPY_WRITEABLE`
-should also be ensured if you plan on writing to the memory area of
-the array. It is also possible to obtain a pointer to an unwriteable
-memory area. Sometimes, writing to the memory area when the
-:cdata:`NPY_WRITEABLE` flag is not set will just be rude. Other times it can
-cause program crashes ( *e.g.* a data-area that is a read-only
-memory-mapped file).
+dimensions members of the :ctype:`PyArrayObject`, the flags contain
+important information about how the data may be accessed. In particular,
+the :cdata:`NPY_ARRAY_ALIGNED` flag is set when the memory is on a
+suitable boundary according to the data-type array. Even if you have
+a contiguous chunk of memory, you cannot just assume it is safe to
+dereference a data- type-specific pointer to an element. Only if the
+:cdata:`NPY_ARRAY_ALIGNED` flag is set is this a safe operation (on
+some platforms it will work but on others, like Solaris, it will cause
+a bus error). The :cdata:`NPY_ARRAY_WRITEABLE` should also be ensured
+if you plan on writing to the memory area of the array. It is also
+possible to obtain a pointer to an unwriteable memory area. Sometimes,
+writing to the memory area when the :cdata:`NPY_ARRAY_WRITEABLE` flag is not
+set will just be rude. Other times it can cause program crashes ( *e.g.*
+a data-area that is a read-only memory-mapped file).
Data-type encapsulation