summaryrefslogtreecommitdiff
path: root/doc/source/reference
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #20185 from melissawm/add-interop-docMatti Picus2022-02-022-13/+20
|\ \ | | | | | | DOC: Added explanation document on interoperability
| * | Addressing review commentsmelissawm2021-11-222-13/+20
| | |
* | | DOC: random: Fix spelling of 'precision'.warren2022-01-212-2/+2
| | |
* | | DOC: Update CPU features table with VSX4Rafael Cardoso Fernandes Sousa2022-01-171-14/+16
| | |
* | | MAINT, DOC: discard repeated wordsDimitri Papadopoulos2022-01-134-5/+5
| | |
* | | MAINT, DOC: fix new typos detected by codespellDimitri Papadopoulos2022-01-121-2/+2
| | |
* | | DOC: Capitalization and missing word in docsJoseph Fox-Rabinovitz2022-01-061-3/+3
| | | | | | | | | Followup to #20689 to include the correction made in the now-invalid #20686.
* | | BUG: Added check for NULL data in ufuncs (#20689)Joseph Fox-Rabinovitz2022-01-061-4/+8
| |/ |/| | | | | | | | | | | * BUG: Added check for NULL data in ufuncs * DOC: Made NULL refs more explicit * DOC: Added ..versionchanged:: tag
* | DOC:Fixed the link on user-guide landing pageArryan Singh2022-01-011-2/+2
| |
* | Merge pull request #20647 from WarrenWeckesser/doc-failunlesswriteableCharles Harris2021-12-271-0/+11
|\ \ | | | | | | DOC: Add PyArray_FailUnlessWriteable to the online C-API docs.
| * | DOC: Add PyArray_FailUnlessWriteable to the online C-API docs.warren2021-12-221-0/+11
| | | | | | | | | | | | | | | | | | | | | The text was copy-edited a bit, and the comments in the C file were updated to match the documentation in the .rst file. Closes gh-20623.
* | | add np.iterable to reference guidepantelis2021-12-221-0/+1
|/ /
* | Merge branch 'main' into doctest_for_pytestPierre de Buyl2021-12-2114-902/+1208
|\ \
| * | DEP: remove NPY_ARRAY_UPDATEIFCOPY, deprecated in 1.14 (#20589)Matti Picus2021-12-182-47/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DEP: remove NPY_ARRAY_UPDATEIFCOPY, deprecated in 1.14 * remove more UPDATEIFCOPY * typo: add missing comma * remove a few more UPDATEIFCOPY * Add release note * remove UPDATEIFCOPY from comment (from review)
| * | DOC: update SIMD build options to cover s390x featuresSayed Adel2021-12-143-4/+20
| | |
| * | DOC, SIMD: redirect the old path to the new indexSayed Adel2021-12-101-1/+10
| | |
| * | DOC, SIMD: Apply suggestions from Melissa's code reviewSayed Adel2021-12-103-62/+65
| | | | | | | | | | | | Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
| * | DOC, SIMD: move How It Works into separated pageSayed Adel2021-12-082-0/+350
| | |
| * | DOC, SIMD: Improve build options and move them into a separated pageSayed Adel2021-12-083-0/+456
| | |
| * | DOC, SIMD: add a new index for the optimization page to separate into ↵Sayed Adel2021-12-083-527/+40
| | | | | | | | | | | | multiple files
| * | DOC, SIMD: Improve the auto-generated tables of CPU featuresSayed Adel2021-12-086-330/+320
| | |
* | | revert default_rng seeding and use SKIPPierre de Buyl2021-12-081-18/+18
| | |
* | | Remove matplotlib output linesPierre de Buyl2021-12-081-4/+0
| | |
* | | DOC: remove explicit imports in rst filesPierre de Buyl2021-12-0814-38/+1
| | | | | | | | | | | | Add conftest.py and pytest.ini files in doc directory
* | | [DOC] make some doctests in user,reference pass pytestPierre de Buyl2021-12-0812-36/+69
|/ / | | | | | | | | | | | | | | | | | | | | | | 1. Add `import numpy as np` in rst files 2. Update NumPy repr for array (whitespace) 3. Update bytearray representation 4. Fix tiny output formatting (`<class ...>`, etc) 5. Format tracebacks 6. Skip random number tests or some platform-dependent outputs 7. Add `<matplotlib. ... at 0x...>` or similar output lines where missing 8. Set seed
* | DOC: Fix some target not found Sphinx warnings. (#20140)Chiara Marmo2021-12-011-0/+5
|/
* DEP: remove deprecated `np.asscalar` functionRalf Gommers2021-11-211-1/+0
| | | | Was deprecated in 1.16.0
* DEP: remove allocation_tracking, deprecate PyDataMem_SetEventHook (#20394)Matti Picus2021-11-181-7/+9
| | | | | | | | | | | | | * DEP: remove allocation_tracking * DOC: add release note * DEP: deprecate PyDataMem_SetEventHook * DOC: fix name of release note * fixes from review * DOC: document deprecation of PyDataMem_EventHookFunc
* ENH: add a 'version' field to PyDataMem_Handlermattip2021-11-101-1/+2
|
* DOC: centralized min-max documentation under 'extrema finding' subsection in ↵Yuval Ofek2021-10-302-10/+17
| | | | mathematical functions page
* Merge pull request #20195 from WarrenWeckesser/doc-miscSebastian Berg2021-10-271-8/+14
|\ | | | | DOC: Two small changes in array.rst:
| * DOC: Two small changes in array.rst:warren2021-10-261-8/+14
| | | | | | | | | | | | * Include the return values of `PyArray_RegisterCanCast` in the description. * Correct the documentation of `PyArray_Scalar`.
* | MAINT: Only warn for transferred ownership if env variable is set (#20200)Matti Picus2021-10-273-3/+51
|/ | | | | | | | | | | | | Builds on gh-20194. Fixes breakage of SciPy in https://github.com/scipy/scipy/issues/14917 At some point we could flip the default to "warn" instead of "no warning" * make warning conditional on NUMPY_WARN_IF_NO_MEM_POLICY * add test, fix example code * fixes from review * typo
* DOC: add release note and move NEP 49 to Final (#20194)Matti Picus2021-10-261-0/+2
| | | | | | | * DOC: add release note and move NEP 49 to Final * fix link * fix release note
* [MAINT] minor grammar fix: add missing "an"bbrewington2021-10-251-1/+1
|
* [MAINT] Fix minor typobbrewington2021-10-251-1/+1
|
* ENH: Configurable allocator (#17582)Matti Picus2021-10-252-0/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes gh-17467. Adds a public struct to hold memory manipulation routines PyDataMem_Handler and two new API functions PyDataMem_SetHandler to replace the current routines with the new ones, and PyDataMem_GetHandlerName to get the string name of the current routines (either globally or for a specific ndarray object). This also changes the size of the ndarray object to hold the PyDataMem_Handler active when it was created so subsequent actions on its data memory will remain consistent. Tests and documentation are included. Along the way, I found some places in the code where the current policy is inconsistent (all data memory handling should have gone through npy_*_cache not PyDataMem_*) so even if this is rejected it might improve the cache handling. The PyDataMem_Handler has fields to override memcpy, these are currently not implemented: memcpy in the code base is untouched. I think this PR is invasive enough as-is, if desired memcpy can be handled in a follow-up PR. * ENH: add and use global configurable memory routines * ENH: add tests and a way to compile c-extensions from tests * fix allocation/free exposed by tests * DOC: document the new APIs (and some old ones too) * BUG: return void from FREE, also some cleanup * MAINT: changes from review * fixes from linter * setting ndarray->descr on 0d or scalars mess with FREE * make scalar allocation more consistent wrt np_alloc_cache * change formatting for sphinx * remove memcpy variants * update to match NEP 49 * ENH: add a python-level get_handler_name * ENH: add core.multiarray.get_handler_name * Allow closure-like definition of the data mem routines * Fix incompatible pointer warnings * Note PyDataMemAllocator and PyMemAllocatorEx differentiation Co-authored-by: Matti Picus <matti.picus@gmail.com> * Redefine default allocator handling * Always allocate new arrays using the current_handler * Search for the mem_handler name of the data owner * Sub-comparisons don't need a local mem_handler * Make the default_handler a valid PyDataMem_Handler * Fix PyDataMem_SetHandler description (NEP discussion) * Pass the allocators by reference * Implement allocator context-locality * Fix documentation, make PyDataMem_GetHandler return const * remove import of setuptools==49.1.3, doesn't work on python3.10 * Fix refcount leaks * fix function signatures in test * Return early on PyDataMem_GetHandler error (VOID_compare) * Add context/thread-locality tests, allow testing custom policies * ENH: add and use global configurable memory routines * ENH: add tests and a way to compile c-extensions from tests * fix allocation/free exposed by tests * DOC: document the new APIs (and some old ones too) * BUG: return void from FREE, also some cleanup * MAINT: changes from review * fixes from linter * setting ndarray->descr on 0d or scalars mess with FREE * make scalar allocation more consistent wrt np_alloc_cache * change formatting for sphinx * remove memcpy variants * update to match NEP 49 * ENH: add a python-level get_handler_name * ENH: add core.multiarray.get_handler_name * Allow closure-like definition of the data mem routines * Fix incompatible pointer warnings * Note PyDataMemAllocator and PyMemAllocatorEx differentiation Co-authored-by: Matti Picus <matti.picus@gmail.com> * Redefine default allocator handling * Always allocate new arrays using the current_handler * Search for the mem_handler name of the data owner * Sub-comparisons don't need a local mem_handler * Make the default_handler a valid PyDataMem_Handler * Fix PyDataMem_SetHandler description (NEP discussion) * Pass the allocators by reference * remove import of setuptools==49.1.3, doesn't work on python3.10 * fix function signatures in test * try to fix cygwin extension building * YAPF mem_policy test * Less empty lines, more comments (tests) * Apply suggestions from code review (set an exception and) Co-authored-by: Matti Picus <matti.picus@gmail.com> * skip test on cygwin * update API hash for changed signature * TST: add gc.collect to make sure cycles are broken * Implement thread-locality for PyPy Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> * Update numpy/core/tests/test_mem_policy.py Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> * fixes from review * update circleci config * fix test * make the connection between OWNDATA and having a allocator handle more explicit * improve docstring, fix flake8 for tests * update PyDataMem_GetHandler() from review * Implement allocator lifetime management * update NEP and add best-effort handling of error in PyDataMem_UserFREE * ENH: fix and test for blindly taking ownership of data * Update doc/neps/nep-0049.rst Co-authored-by: Elias Koromilas <elias.koromilas@gmail.com>
* DOC: Remove double property ctypes from ndarrayPeter Tillema2021-10-141-1/+0
| | | Fix #20117
* DOC: Document the dtype comparison operationsBas van Beek2021-10-091-0/+10
|
* DOC:add-html-reference-to-some-ma-methodsSista Seetaram2021-10-061-0/+3
|
* DOC: add example showing how to convert POSIX timestamps to datetime64 (#18984)Jonathan Reichelt Gjertsen2021-10-011-3/+15
| | | | | * DOC: add example showing how to convert POSIX timestamps to datetime64 Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
* Merge pull request #19981 from cmarmo/npyarray-enumsMatti Picus2021-10-012-54/+75
|\ | | | | DOC: Deindent some sphinx declarations to avoid warnings.
| * Add comments to prevent revert.Chiara Marmo2021-09-302-0/+21
| |
| * Fix scope of some sphinx declarations to avoid warnings.Chiara Marmo2021-09-282-54/+54
| |
* | DOC: Copy-edit and fix typos.Warren Weckesser2021-09-291-2/+2
|/
* Merge pull request #19879 from BvB93/cls_getitemCharles Harris2021-09-253-2/+23
|\ | | | | ENH: Add `__class_getitem__` to `ndarray`, `dtype` and `number`
| * DOC: Add links to the `__class_getitem__` docsBas van Beek2021-09-163-2/+23
| |
* | DOC: Typos found by codespellDimitri Papadopoulos2021-09-218-20/+20
| |
* | Merge pull request #19844 from Mukulikaa/c-api-additionsCharles Harris2021-09-161-14/+61
|\ \ | | | | | | DOC: Added missing C-API functions
| * | Update doc/source/reference/c-api/array.rstCharles Harris2021-09-131-1/+1
| | | | | | | | | Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>