diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-12-03 13:00:55 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-12-03 13:00:55 -0700 |
commit | 16c6a361e741685feb67c29c36631829ce3b9559 (patch) | |
tree | ff17cad11596e30b8a9f0e1943033d9a7411f400 /doc/release | |
parent | e9ef83d72b8d5ca6828b16fc8cdf435905fe9bb0 (diff) | |
download | numpy-16c6a361e741685feb67c29c36631829ce3b9559.tar.gz |
DOC: Document fortran order view deprecation in 1.11 release notes.
Diffstat (limited to 'doc/release')
-rw-r--r-- | doc/release/1.11.0-notes.rst | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/release/1.11.0-notes.rst b/doc/release/1.11.0-notes.rst index 580c0c952..7c2ed2133 100644 --- a/doc/release/1.11.0-notes.rst +++ b/doc/release/1.11.0-notes.rst @@ -18,6 +18,8 @@ Dropped Support Future Changes ============== +* Relaxed stride checking will become the default. + Compatibility notes =================== @@ -36,7 +38,7 @@ DeprecationWarning to error * Non-integers used as index values raise TypeError, e.g., in reshape, take, and specifying reduce axis. -FutureWarning to changed behavior +FutureWarning to changed behavior ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * In ``np.lib.split`` an empty array in the result always had dimension @@ -96,3 +98,16 @@ Changes Deprecations ============ +Views of arrays in Fortran order +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +The f_contiguous flag was used to signal that views as a dtypes that +changed the element size would change the first index. This was always a +bit problematical for arrays that were both f_contiguous and c_contiguous +because c_contiguous took precendence. Relaxed stride checking results in +more such dual contiguous arrays and breaks some existing code as a result. +Note that this also affects changing the dtype by assigning to the dtype +attribute of an array. The aim of this deprecation is to restrict views to +c_contiguous arrays at some future time. A work around that is backward +compatible is to use `a.T.view(...).T` instead. A parameter will also be +added to the view method to explicitly ask for Fortran order views, but +that will not be backward compatible. |