summaryrefslogtreecommitdiff
path: root/doc/source/reference/arrays.ndarray.rst
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2017-01-28 19:32:34 +0100
committerGitHub <noreply@github.com>2017-01-28 19:32:34 +0100
commit7a36b5010b4a9b30a05db7679f3485276aa6bd4b (patch)
treeceb3c64f5c0b63773e31c44613857bf0f185481f /doc/source/reference/arrays.ndarray.rst
parentc5e1773f0d77755e21d072eb106b8e51a672bfa8 (diff)
parent55be7fc2f9147b8a4df1afd47b0a3d661f6b80dc (diff)
downloadnumpy-7a36b5010b4a9b30a05db7679f3485276aa6bd4b.tar.gz
Merge pull request #8540 from aha66/patch-1
DOC: fix mistake in arrays.ndarray.rst
Diffstat (limited to 'doc/source/reference/arrays.ndarray.rst')
-rw-r--r--doc/source/reference/arrays.ndarray.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/reference/arrays.ndarray.rst b/doc/source/reference/arrays.ndarray.rst
index 14d35271e..e5295e87a 100644
--- a/doc/source/reference/arrays.ndarray.rst
+++ b/doc/source/reference/arrays.ndarray.rst
@@ -108,7 +108,7 @@ objects can accommodate any *strided indexing scheme*. In a strided
scheme, the N-dimensional index :math:`(n_0, n_1, ..., n_{N-1})`
corresponds to the offset (in bytes):
-.. math:: n_{\mathrm{offset}} = \sum_{k=0}^{N-1} s_k n_k
+.. math:: n_{\mathrm{offset}} = \mathrm{itemsize} \sum_{k=0}^{N-1} s_k n_k
from the beginning of the memory block associated with the
array. Here, :math:`s_k` are integers which specify the :obj:`strides
@@ -124,7 +124,7 @@ strided scheme, and correspond to memory that can be *addressed* by the strides:
.. index:: single-segment, contiguous, non-contiguous
-where :math:`d_j` `= self.itemsize * self.shape[j]`.
+where :math:`d_j` `= self.shape[j]`.
Both the C and Fortran orders are :term:`contiguous`, *i.e.,*
:term:`single-segment`, memory layouts, in which every part of the