diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-12-06 11:44:34 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-12-06 11:44:34 -0700 |
commit | 328f89e48558b8c9523a6c41696fd2b677930fa1 (patch) | |
tree | b69c8b117336271934d815e711928b0d8d3d95d5 /doc/release/1.11.0-notes.rst | |
parent | 0ba39a97ce6f38b714b8109bd32573a9eacd4c17 (diff) | |
parent | 16c6a361e741685feb67c29c36631829ce3b9559 (diff) | |
download | numpy-328f89e48558b8c9523a6c41696fd2b677930fa1.tar.gz |
Merge pull request #6747 from charris/deprecate-fortran-view
DEP: Deprecate changing shape of non-C-contiguous array via descr.
Diffstat (limited to 'doc/release/1.11.0-notes.rst')
-rw-r--r-- | doc/release/1.11.0-notes.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/release/1.11.0-notes.rst b/doc/release/1.11.0-notes.rst index e60062c81..fac868ca3 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 =================== @@ -103,3 +105,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. |