diff options
author | aha66 <andreas@aha66.at> | 2017-01-28 19:28:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-28 19:28:41 +0100 |
commit | 55be7fc2f9147b8a4df1afd47b0a3d661f6b80dc (patch) | |
tree | ceb3c64f5c0b63773e31c44613857bf0f185481f /doc | |
parent | c5e1773f0d77755e21d072eb106b8e51a672bfa8 (diff) | |
download | numpy-55be7fc2f9147b8a4df1afd47b0a3d661f6b80dc.tar.gz |
Update arrays.ndarray.rst
corrected formula for n_offset and d_j
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/reference/arrays.ndarray.rst | 4 |
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 |