summaryrefslogtreecommitdiff
path: root/doc/release
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2019-06-01 23:43:00 +0300
committerGitHub <noreply@github.com>2019-06-01 23:43:00 +0300
commit4b4eaa666b18016162c144b7757ba40d8237fdb8 (patch)
treefff212aed1b49616de5fe137e6f72c5cbde4ae1c /doc/release
parente55563ffca5564cc25c174ad68a9056fb8addcfb (diff)
parent458b5bd38aa50d4c903ff1117ea811a29f774709 (diff)
downloadnumpy-4b4eaa666b18016162c144b7757ba40d8237fdb8.tar.gz
Merge pull request #13693 from eric-wieser/const-correct-API
ENH: Pass input strides and dimensions by pointer to const
Diffstat (limited to 'doc/release')
-rw-r--r--doc/release/1.17.0-notes.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/release/1.17.0-notes.rst b/doc/release/1.17.0-notes.rst
index de633d778..4ec086e77 100644
--- a/doc/release/1.17.0-notes.rst
+++ b/doc/release/1.17.0-notes.rst
@@ -127,6 +127,16 @@ or ``np.nan``) is now dropped.
C API changes
=============
+dimension or stride input arguments are now passed by ``npy_intp const*``
+-------------------------------------------------------------------------
+Previously these function arguments were declared as the more strict
+``npy_intp*``, which prevented the caller passing constant data.
+This change is backwards compatible, but now allows code like::
+
+ npy_intp const fixed_dims[] = {1, 2, 3};
+ // no longer complains that the const-qualifier is discarded
+ npy_intp size = PyArray_MultiplyList(fixed_dims, 3);
+
New Features
============