diff options
author | Matti Picus <matti.picus@gmail.com> | 2019-06-01 23:43:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-01 23:43:00 +0300 |
commit | 4b4eaa666b18016162c144b7757ba40d8237fdb8 (patch) | |
tree | fff212aed1b49616de5fe137e6f72c5cbde4ae1c /doc/release | |
parent | e55563ffca5564cc25c174ad68a9056fb8addcfb (diff) | |
parent | 458b5bd38aa50d4c903ff1117ea811a29f774709 (diff) | |
download | numpy-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.rst | 10 |
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 ============ |