diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-07-01 13:20:30 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-07-01 23:40:55 -0600 |
commit | 276a4e1c27f17cca30ae0c0775fe03bd4b46af35 (patch) | |
tree | 2aef5a43cab0c890bb04310d643795613448a7c5 /doc/source/reference | |
parent | 1393a575c58f1ba86b1684ba9677ad134d057a93 (diff) | |
download | numpy-276a4e1c27f17cca30ae0c0775fe03bd4b46af35.tar.gz |
DOC: Fix list markup in source/reference/arrays.ndarray.rst.
List needs to be preceded by blank line.
Diffstat (limited to 'doc/source/reference')
-rw-r--r-- | doc/source/reference/arrays.ndarray.rst | 15 |
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 |