summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | | | | ENH: Allow compiling compatibly to old NumPy versionsSebastian Berg2023-04-047-23/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default compiles compatibly with 1.17.x, we allow going back to 1.15 (mainly because it is easy). There were few additions in this time, a few structs grew and very few API functions were added. Added a way to mark API functions as requiring a specific target version. If a user wishes to use the *new* API, they have to add the definition: #define NPY_TARGET_VERSION NPY_1_22_API_VERSION Before importing NumPy. (Our version numbering is a bit funny I first thought to use a hex version of the main NumPy version, but since we already have the `NPY_1_22_API_VERSION` defines...)
| * | | | | | | | | | | | BLD: Add support for NPY_TARGET_VERSION macroSebastian Berg2023-04-043-33/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a way for downstream users to specify which NumPy version they wish to be compaible with. Note that we provide a conservative default here (because almost nobody actually uses new API as they would lose backwards compatibility). Initially I had thought we should just redefine it so that the target version uses the same scheme as the Python hex version (and limited API), but since we have `NPY_1_15_API_VERSION` defines, use those... This commit does not include any actual use of this!
* | | | | | | | | | | | | CI: Update to Pyodide 0.23.0 (#23515)Hood Chatham2023-04-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * CI Update to Pyodide 0.23.0 * Update .github/workflows/emscripten.yml --------- Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* | | | | | | | | | | | | Merge pull request #18053 from Iamsoto/adding_object_to_einsumSebastian Berg2023-04-287-49/+235
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | ENH: Adding Object dtype to einsum
| * | | | | | | | | | | | | fixes from reviewmattip2023-04-273-24/+36
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | DOC: add a release notemattip2023-03-301-0/+4
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | MAINT: expand PyArray_AssignZero to handle object dtypemattip2023-03-303-38/+24
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | TST: add test for 5e6e5863 (issue gh-23492)mattip2023-03-301-1/+4
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | TST: fix tests for einsum returning a python objectmattip2023-03-301-2/+6
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | BUG: work around shortcoming in PyArray_AssignZero for object dtypemattip2023-03-301-2/+15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | BUG: only check PyErr_Occurred if Python C-API is neededmattip2023-03-301-4/+8
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | BUG: if dtype is object, do outbuf[:] = 0 rather than memsetmattip2023-03-301-1/+13
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Update numpy/core/src/multiarray/einsum_sumprod.c.src The Dog Lulu2023-03-291-25/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing Erics suggestions Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | | | | | | | | | | | | PR_fixes_1iamsoto2023-03-294-385/+125
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | WIP: Adding Object dtype to einsumiamsoto2023-03-292-5/+421
| |/ / / / / / / / / / / /
* | | | | | | | | | | | | Merge pull request #23529 from lorentzenchr/doc_quantileSebastian Berg2023-04-282-10/+10
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | DOC: quantile parameter q is a probability
| * | | | | | | | | | | | | DOC use percentage for q in percentileChristian Lorentzen2023-04-261-2/+2
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | DOC quantile q is a probabilityChristian Lorentzen2023-04-042-8/+8
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Merge pull request #22493 from mwtoews/maint-openSebastian Berg2023-04-2824-59/+58
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MAINT: remove redundant open() modes and io.open() alias
| * | | | | | | | | | | | | | MAINT: remove redundant open() modes and io.open() aliasMike Taves2022-10-2924-59/+58
| | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | Merge pull request #23677 from drammock/update-website-theme-versionCharles Harris2023-04-273-3/+3
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MAINT: bump website theme version
| * | | | | | | | | | | | | | | fix doc build warning (missing backtick)Daniel McCloy2023-04-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /opt/numpy/numpy/dtypes.py:docstring of numpy.dtypes:20: WARNING: Inline literal start-string without end-string.
| * | | | | | | | | | | | | | | update theme version pinDaniel McCloy2023-04-272-2/+2
| | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | Merge pull request #23676 from ↵Charles Harris2023-04-272-4/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | numpy/dependabot/github_actions/github/codeql-action-2.3.1 MAINT: Bump github/codeql-action from 2.3.0 to 2.3.1
| * | | | | | | | | | | | | | | MAINT: Bump github/codeql-action from 2.3.0 to 2.3.1dependabot[bot]2023-04-272-4/+4
|/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.3.0 to 2.3.1. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/b2c19fb9a2a485599ccf4ed5d65527d94bc57226...8662eabe0e9f338a07350b7fd050732745f93848) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* | | | | | | | | | | | | | | Merge pull request #23666 from seberg/subarray-cleanupMatti Picus2023-04-2716-351/+155
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DEP,BUG: Finalize subarray dtype FutureWarning and fix its assignment
| * | | | | | | | | | | | | | | DOC: Add release note for expired subarray dtype from arrays FutureWarningSebastian Berg2023-04-261-0/+5
| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | DEP: Finalize subarray from non-subarray creation futurewarningSebastian Berg2023-04-264-278/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This unfortunately switches over the C-only path when FromArray is called with a subarray dtype. Together with the previous commit (which is very simple but in a sense does the heavy lifting): Closes gh-23083
| * | | | | | | | | | | | | | | MAINT: Fixup handling of subarray dtype in ufunc.resolve_dtypesSebastian Berg2023-04-262-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is now OK to just support, we won't replace things and things should work out for the most part (probably).
| * | | | | | | | | | | | | | | MAINT: Refactor internal array creation to also allow dtype preservationSebastian Berg2023-04-2612-64/+92
| | |_|_|_|/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cases we know that we want to use the *exact* dtype that we already have (mainly when taking views). This is also useful internally because there are very rare code-paths were we even create temporary arrays that contain subarray dtypes.
* | | | | | | | | | | | | | | Merge pull request #23358 from seberg/dtype-class-in-typesMatti Picus2023-04-2715-161/+374
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | API: Add DType classes into new `numpy.dtypes` module
| * | | | | | | | | | | | | | | Apply suggestions from code reviewSebastian Berg2023-04-272-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Matti Picus <matti.picus@gmail.com>
| * | | | | | | | | | | | | | | MAINT: Move module to be `np.dtypes` and add release noteSebastian Berg2023-04-1211-26/+35
| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | TYP: Fix typing review comment and address doc review commentSebastian Berg2023-04-122-41/+45
| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | MAINT: Explicitly import typesSebastian Berg2023-04-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | That is probably needed for lazy loaders, but also for pyinstaller (although for pyinstaller we could add it as a hidden module).
| * | | | | | | | | | | | | | | MAINT: Add `numpy.types` to meson.buildSebastian Berg2023-04-121-0/+2
| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | TST: Update test due to windows Int vs intc name differenceSebastian Berg2023-04-121-2/+6
| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | API: Add `numpy.types` module and fill it with DType classesSebastian Berg2023-04-1210-51/+237
| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | MAINT: Refactor type naming C codeSebastian Berg2023-04-122-110/+117
| | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | Merge pull request #23668 from f380cedric/npzfile-contains-releasenoteCharles Harris2023-04-261-0/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DOC: add release note for npzfile membership test
| * | | | | | | | | | | | | | | | MAINT: Correct spelling in file name.Charles Harris2023-04-261-0/+0
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | MAINT: Tweak formatting.Charles Harris2023-04-261-2/+3
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | DOC: add release note for npzfile membership testf380cedric2023-04-261-0/+3
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Merge pull request #23648 from JulesKouatchou/feature/JulesK/docsMatti Picus2023-04-262-7/+84
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ / / / / / / / / |/| | | | | | | | | | | | | | | | DOC: Example on how to use np.lib.tracemalloc_domain.
| * | | | | | | | | | | | | | | | Deleted tools/allocation_tracking/README.mdJules Kouatchou2023-04-261-86/+0
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Change the section (on memory tracing) title to reflect its content.Jules Kouatchou2023-04-251-2/+2
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Added indentation for the sample code to be properly displayed.Jules Kouatchou2023-04-251-72/+71
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Added an example on how to trace memory in an application with NumPy related ↵Jules Kouatchou2023-04-251-0/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | calls.
| * | | | | | | | | | | | | | | | Provided an example on how to use np.lib.tracemalloc_domain.Jules Kouatchou2023-04-221-5/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is meant to address Issue 14766.
* | | | | | | | | | | | | | | | | DOC: Convert titles to sentence case (#23643)Talha M2023-04-2614-29/+29
| |_|_|/ / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partially addresses #16261.