summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | | | | | | | Revert "ENH: Add AVX-512 based 16-bit dtype sort"Raghuveer Devulapalli2023-01-304-88/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 225c8bab83d239d8888bc7b688efed97ab2284cf.
| | * | | | | | | | | | | | | BUG: Use longlong when NPY_SIZEOF_LONG is 4Raghuveer Devulapalli2023-01-302-0/+18
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | ENH: Add AVX-512 based 16-bit dtype sortRaghuveer Devulapalli2023-01-304-0/+88
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | ENH: Add AVX-512 based 64-bit dtype sortRaghuveer Devulapalli2023-01-305-839/+110
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | ENH: Add x86-simd-sort source filesRaghuveer Devulapalli2023-01-304-0/+2277
| | | |/ / / / / / / / / / / | | |/| | | | | | | | | | |
| * | | | | | | | | | | | | ENH: Add some unit tests for finfo and iinfo (#23109)Pieter Eendebak2023-02-151-11/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ENH: Add some unit tests for finfo and iinfo * make tests more specific * refactor * lint * review comments * whitespace * add regression test * fix test
| * | | | | | | | | | | | | MAINT: Merge public and private dtype API as much as possibleSebastian Berg2023-02-1413-432/+353
| | |_|_|_|/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This merges header definitions that are private (enough) so that we use the same definitions within NumPy as externally made available through the experimental dtype API header. Tested with string and mpfdtype from the experimental dtype API.
| * | | | | | | | | | | | DOC: Fix matpltolib error in documentation (#23212)Sebastian Berg2023-02-141-1/+1
| | |_|_|_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As noted by Kyle Sunden, this was deprecated and has been removed, using the method is the correct way of doing it in newer matplotlib. Closes gh-23209 Co-authored-by: Kyle Sunden <ksunden@users.noreply.github.com>
| * | | | | | | | | | | BUG: datetime64/timedelta64 comparisons return NotImplemented (#23201)jbrockmendel2023-02-132-0/+22
| | |_|/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * BUG: datetime64/timedelta64 comparisons return NotImplemented * typo fixup * Update numpy/core/src/multiarray/scalartypes.c.src Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> * Update numpy/core/src/multiarray/scalartypes.c.src --------- Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
| * | | | | | | | | | Merge pull request #23089 from seberg/numpy2-flagMatti Picus2023-02-127-5/+46
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | API: Add environment variable for behavior planned in a 2.0
| | * | | | | | | | | | MAINT: Use `np._using_numpy2_behavior()` and initialize it in CSebastian Berg2023-02-106-21/+28
| | | | | | | | | | | |
| | * | | | | | | | | | API: Modify `gradient` to return a tuple rather than a listSebastian Berg2023-02-102-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is staged for NumPy 2.0, I assume we could get away with it otherwise, but it is a nice example and probably not pressing.
| | * | | | | | | | | | API: Add environment variable for behavior planned in a 2.0Sebastian Berg2023-02-103-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The idea of the flag is not to allow to change it right now, since there may be some things where that is hard to do in general, and it doesn't seem relevant: nobody is supposed to use it besides for testing.
| * | | | | | | | | | | Fix typos found by copdespellDimitri Papadopoulos2023-02-1124-34/+34
| | | | | | | | | | | |
| * | | | | | | | | | | Merge pull request #20064 from DimitriPapadopoulos/strMatti Picus2023-02-1120-133/+134
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | MAINT, DOC: get rid of unicode, unicode_, string_
| | * | | | | | | | | | | MAINT, DOC: string_ → bytes_ and unicode_ → str_Dimitri Papadopoulos2023-02-1020-129/+130
| | | | | | | | | | | | |
| | * | | | | | | | | | | DOC: unicode → strDimitri Papadopoulos2023-02-101-4/+4
| | | | | | | | | | | | |
| * | | | | | | | | | | | BUG: fix for f2py string scalars (#23194)Alexander Heger2023-02-113-3/+30
| | |/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in previous version, any string scalar was converted to a string array of dimension len, i.e., a definition character(len=N) :: X effectively became character(len=NNN), dimension(NNN) :: X from the point of few of the numpy (python) interface: X.shape == (NNN,) X.dtype == '|SNNN' Closes gh-23192
| * | | | | | | | | | | Merge pull request #23174 from ↵Sebastian Berg2023-02-101-2/+83
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Developer-Ecosystem-Engineering/fix-simd-multiply-and-divide-on-apple-silicon BUG: Fix Apple silicon builds by working around clang partial load bug in …
| | * | | | | | | | | | | Fix Apple silicon builds by working around clang partial load bug in SIMD ↵Developer-Ecosystem-Engineering2023-02-071-2/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | multiply and divide
| * | | | | | | | | | | | MAINT: fix typo in overrides.pyIkko Eltociear Ashimine2023-02-101-2/+2
| | |/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | overriden -> overridden
| * | | | | | | | | | | Merge pull request #23181 from mhvk/ufunc-at-complex-add-subtract-multiplyMatti Picus2023-02-105-3/+92
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | ENH: enable fast indexed loops for complex add, subtract, multiply
| | * | | | | | | | | | | ENH: enable fast indexed loops for complex add, subtract, multiplyMarten van Kerkwijk2023-02-095-6/+95
| | | | | | | | | | | | |
| * | | | | | | | | | | | ENH: add indexed loops for maximum, minimum, fmax, fmin (#23177)Matti Picus2023-02-095-16/+96
| |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Continuation of the ufunc.at optimizations: add indexed loops for maximum, minimum, fmax, fmin ufuncs and a benchmark for maximum.at (performance increased by ~13x) * BENCH: add np.maximum.at benchmark * remove 'explain_chain' * add a seed to `default_rng() (from review) * MAINT: formatting and change comments, from review
| * | | | | | | | | | | TST: Comment out spurious print in f2py testSebastian Berg2023-02-091-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Matti was wondering where it came from, so lets comment it out.
| * | | | | | | | | | | BUG/ENH: Fix fast index loops for 1-el array / allow scalar valueMarten van Kerkwijk2023-02-082-2/+16
| | | | | | | | | | | |
| * | | | | | | | | | | Merge pull request #23136 from mattip/indexed-looposSebastian Berg2023-02-0716-69/+569
| |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / | |/| | | | | | | | | | ENH: create and use indexed inner loops
| | * | | | | | | | | | TST, BUG: add a test for unary ufuncs, fix condition for indexed loopsmattip2023-02-074-2/+107
| | | | | | | | | | | |
| | * | | | | | | | | | ENH: fixes from reviewmattip2023-02-071-12/+4
| | | | | | | | | | | |
| | * | | | | | | | | | TST: add test (from review)mattip2023-02-071-0/+7
| | | | | | | | | | | |
| | * | | | | | | | | | BUG: improve check for 1d operands (from review)mattip2023-02-071-1/+4
| | | | | | | | | | | |
| | * | | | | | | | | | BUG: fixes from review: use iter->nd and adapt to unary ufuncsmattip2023-02-061-6/+11
| | | | | | | | | | | |
| | * | | | | | | | | | BUG: Deal with casting and non-contig/1-D indicesSebastian Berg2023-02-062-4/+18
| | | | | | | | | | | |
| | * | | | | | | | | | BUG: Clean up reference handling in `ufunc.at` a little.Sebastian Berg2023-02-061-5/+1
| | | | | | | | | | | |
| | * | | | | | | | | | MAINT: rework release note, changes from reviewmattip2023-02-055-25/+27
| | | | | | | | | | | |
| | * | | | | | | | | | MAINT: update EXPERIMENTAL_DTYPE_API_VERSION toomattip2023-02-011-1/+1
| | | | | | | | | | | |
| | * | | | | | | | | | MAINT: lintingmattip2023-02-011-3/+5
| | | | | | | | | | | |
| | * | | | | | | | | | MAINT, BUG: fixes from review and testingmattip2023-02-018-81/+177
| | | | | | | | | | | |
| | * | | | | | | | | | ENH: update and sync the public APImattip2023-01-311-1/+2
| | | | | | | | | | | |
| | * | | | | | | | | | MAINT: fix lintingmattip2023-01-311-11/+17
| | | | | | | | | | | |
| | * | | | | | | | | | ENH: use an indexed loop if possible in ufunc_atmattip2023-01-306-16/+63
| | | | | | | | | | | |
| | * | | | | | | | | | ENH: add indexed lower loops and connect them to ufuncsmattip2023-01-308-18/+219
| | | | | | | | | | | |
| | * | | | | | | | | | refactor ufunc_at to first get the inner loop, then create the iteratorsmattip2023-01-301-41/+40
| | | | | | | | | | | |
| | * | | | | | | | | | ENH: add indexed loopsmattip2023-01-302-0/+24
| | |/ / / / / / / / /
| * | | | | | | | | | Revert type change for random_fJonathan Kohler2023-02-051-1/+1
| | | | | | | | | | |
| * | | | | | | | | | Correct types, add missing functions to c_distributions.pxdJonathan Kohler2023-02-051-4/+10
| | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | Correct floating point types on several npyrandom functions exposed for Cython in c_distributions.pyx, add missing float functions
| * | | | | | | | | Merge pull request #23143 from seberg/dtype-pickleCharles Harris2023-02-023-2/+23
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | ENH: Allow trivial pickling of user DType (classes)
| | * | | | | | | | | ENH: Allow trivial pickling of user DType (classes)Sebastian Berg2023-02-023-2/+23
| | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also adds a `_legac` attribute, I am happy to rename it, but I suspect having something like it is useful. Arguably, the best solution would be to give our DTypes a working module+name, but given that we are not there, this seems easy. We could probably check for `__reduce__`, but I am not certain that wouldn't pre-empt successfully already, so this just restores the default for now.
| * | | | | | | | | Merge pull request #23145 from BvB93/39_typCharles Harris2023-02-0217-624/+117
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | TYP,MAINT: Remove typing-related Python <3.9 leftovers
| | * | | | | | | | | MAINT: Remove `npt._GenericAlias` in favor of py39 `types.GenericAlias`BvB932023-02-026-440/+6
| | | | | | | | | | |