diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-02-11 14:35:19 -0600 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2022-02-11 14:53:01 -0600 |
commit | 0457cc7da06d98cc818a0ae1d3cc98ea93a1893d (patch) | |
tree | 49ce408981c79c7546dca44f783c527267b32891 /doc/source/reference/arrays.ndarray.rst | |
parent | f69ddd7111048111a7e486a2d7d008bd231af33d (diff) | |
download | numpy-0457cc7da06d98cc818a0ae1d3cc98ea93a1893d.tar.gz |
MAINT: Remove the RELAXED_STRIDES_CHECKING env variable
An error is for now raised in `setup.py` if this is set, eventually
we should just delete that.
Diffstat (limited to 'doc/source/reference/arrays.ndarray.rst')
-rw-r--r-- | doc/source/reference/arrays.ndarray.rst | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/doc/source/reference/arrays.ndarray.rst b/doc/source/reference/arrays.ndarray.rst index 66ebb66fb..985a11c88 100644 --- a/doc/source/reference/arrays.ndarray.rst +++ b/doc/source/reference/arrays.ndarray.rst @@ -161,26 +161,15 @@ An array is considered aligned if the memory offsets for all elements and the base offset itself is a multiple of `self.itemsize`. Understanding `memory-alignment` leads to better performance on most hardware. -.. note:: - - Points (1) and (2) can currently be disabled by the compile time - environmental variable ``NPY_RELAXED_STRIDES_CHECKING=0``, - which was the default before NumPy 1.10. - No users should have to do this. ``NPY_RELAXED_STRIDES_DEBUG=1`` - can be used to help find errors when incorrectly relying on the strides - in C-extension code (see below warning). - - You can check whether this option was enabled when your NumPy was - built by looking at the value of ``np.ones((10,1), - order='C').flags.f_contiguous``. If this is ``True``, then your - NumPy has relaxed strides checking enabled. - .. warning:: It does *not* generally hold that ``self.strides[-1] == self.itemsize`` for C-style contiguous arrays or ``self.strides[0] == self.itemsize`` for Fortran-style contiguous arrays is true. + ``NPY_RELAXED_STRIDES_DEBUG=1`` can be used to help find errors when + incorrectly relying on the strides in C-extension code (see below warning). + Data in new :class:`ndarrays <ndarray>` is in the :term:`row-major` (C) order, unless otherwise specified, but, for example, :ref:`basic array slicing <arrays.indexing>` often produces :term:`views <view>` |