summaryrefslogtreecommitdiff
path: root/doc/source/reference/arrays.ndarray.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/reference/arrays.ndarray.rst')
-rw-r--r--doc/source/reference/arrays.ndarray.rst15
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/source/reference/arrays.ndarray.rst b/doc/source/reference/arrays.ndarray.rst
index e72c5ce86..f10ad5763 100644
--- a/doc/source/reference/arrays.ndarray.rst
+++ b/doc/source/reference/arrays.ndarray.rst
@@ -133,13 +133,14 @@ memory block can be accessed by some combination of the indices.
While a C-style and Fortran-style contiguous array, which has the corresponding
flags set, can be addressed with the above strides, the actual strides may be
different. This can happen in two cases:
- 1. If ``self.shape[k] == 1`` then for any legal index ``index[k] == 0``.
- This means that in the formula for the offset
- :math:`n_k = 0` and thus :math:`s_k n_k = 0` and the value of
- :math:`s_k` `= self.strides[k]` is arbitrary.
- 2. If an array has no elements (``self.size == 0``) there is no legal index
- and the strides are never used. Any array with no elements may be
- considered C-style and Fortran-style contiguous.
+
+ 1. If ``self.shape[k] == 1`` then for any legal index ``index[k] == 0``.
+ This means that in the formula for the offset :math:`n_k = 0` and thus
+ :math:`s_k n_k = 0` and the value of :math:`s_k` `= self.strides[k]` is
+ arbitrary.
+ 2. If an array has no elements (``self.size == 0``) there is no legal
+ index and the strides are never used. Any array with no elements may be
+ considered C-style and Fortran-style contiguous.
Point 1. means that ``self``and ``self.squeeze()`` always have the same
contiguity and :term:`aligned` flags value. This also means that even a high