summaryrefslogtreecommitdiff
path: root/doc/source
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #20093 from Mukulikaa/indexing-howtoMatti Picus2021-11-174-1/+359
|\ | | | | DOC: Created an indexing how-to
| * DOC: Minor typos and improvement in explanationsMukulika2021-11-112-38/+67
| |
| * DOC: Added and modified examplesMukulika2021-11-112-38/+87
| | | | | | | | Also fixed minor typos and styling errors
| * DOC: Added Nicolas Rougier's exercisesMukulika2021-11-111-10/+58
| |
| * DOC: Created an indexing how-toMukulika2021-11-113-0/+232
| |
* | Merge pull request #18343 from rgommers/ci-skip-docsMatti Picus2021-11-171-0/+21
|\ \ | | | | | | DOC: document how to skip CI jobs
| * | remove appveyorMatti Picus2021-10-201-1/+0
| | | | | | | | | | | | | | | [skip github] [skip travis]
| * | DOC: document how to skip CI jobsRalf Gommers2021-10-201-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a follow-up to gh-18333. Self-test: docs get built on CircleCI, so let's skip the other platforms: [skip github] [skip azurepipelines] [skip appveyor] [skip travis]
* | | REL: Prepare main for NumPy 1.23.0 developmentCharles Harris2021-11-162-0/+46
| | |
* | | DOC: Address build system review IRohit Goswami2021-11-165-18/+34
| | | | | | | | | | | | | | | | | | Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com> Co-authored-by: Christoph Buchner <bilderbuchi@phononoia.at> Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
* | | DOC: Update meson and f2py for automated wrappersRohit Goswami2021-11-154-4/+75
| | |
* | | DOC: Fix omission in build docsRohit Goswami2021-11-151-4/+14
| | |
* | | DOC: Add signature file build informationRohit Goswami2021-11-154-11/+22
| | |
* | | DOC: F2PY build system overviewRohit Goswami2021-11-151-1/+43
| | |
* | | DOC: Add F77 scikit-build exampleRohit Goswami2021-11-154-0/+183
| | | | | | | | | | | | Co-authored-by: Nick Wogan <wogan@uw.edu>
* | | MAINT: Fix build issuesRohit Goswami2021-11-151-7/+8
| | |
* | | DOC: Short note on the cmakelists.txtRohit Goswami2021-11-151-0/+7
| | |
* | | DOC: Add note about `make`Rohit Goswami2021-11-151-0/+4
| | |
* | | DOC: Add CMake with F2PYRohit Goswami2021-11-155-2/+117
| | |
* | | DOC: Detail Meson and F2PY usageHaoZeke2021-11-157-11/+182
| |/ |/|
* | ENH: add a 'version' field to PyDataMem_Handlermattip2021-11-101-1/+2
| |
* | REL: Update main after 1.21.4 release.Charles Harris2021-11-042-0/+47
| |
* | DOC: Use np alias in absolute beginners tutorial example (#20256)Alban Colley2021-10-311-1/+1
| |
* | DOC: fix broken link in "What is NumPy?" to broadcastingkhuynh2021-10-311-1/+1
| |
* | DOC: centralized min-max documentation under 'extrema finding' subsection in ↵Yuval Ofek2021-10-302-10/+17
| | | | | | | | mathematical functions page
* | DOC: Added note about base attributeMukulika2021-10-281-1/+5
| |
* | DOC: Improved wording and organizationMukulika2021-10-281-58/+62
| |
* | DOC: Removed less used term countsMukulika2021-10-281-2/+2
| |
* | DOC: Added introductory paraMukulika2021-10-281-14/+23
| |
* | DOC: Create an explanation document for copies and viewsMukulika2021-10-282-0/+136
| |
* | 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
* | Merge pull request #20197 from Vijay-Arora/fix-typo-20178Melissa Weber Mendonça2021-10-261-1/+1
|\ \ | | | | | | DOC, MAINT : fixing typo in numpy doc
| * | fixing typo in numpy docVijay Arora2021-10-261-1/+1
| | |
* | | 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>
* | Merge pull request #20115 from ↵Charles Harris2021-10-211-2/+8
|\ \ | | | | | | | | | | | | rossbar/doc/absolute-beginners-match-axis-reduction-img DOC: Modify code in absolute beginners tutorial to match image
| * | Add missing indefinite article.Ross Barnowski2021-10-141-1/+1
| | |
| * | Modify code to match img illustrating reduction along axis.Ross Barnowski2021-10-131-2/+8
| | | | | | | | | | | | Co-authored-by: MarsBarLee <mlee@quansight.com>
* | | REL: Update main after 1.21.3 release.Charles Harris2021-10-202-0/+45
| |/ |/|
* | DOC:Reword array has one axisArushi Sharma2021-10-191-4/+5
| |
* | 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
|
* MAINT: Remove encoding declarations: # -*- coding: utf-8 -*-Dimitri Papadopoulos2021-10-061-1/+0
| | | | In Python 3, the default source file encoding is UTF-8.
* 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.