summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Add cpu test features for avx512fp16Raghuveer Devulapalli2023-02-021-1/+2
|
* BLD: Add compile and runtime checks for AVX512FP16Raghuveer Devulapalli2023-02-025-3/+75
|
* Merge pull request #23111 from seberg/dlpack-boolMatti Picus2023-01-303-19/+147
|\ | | | | MAINT: Allow export/import of bools in dlpack
| * MAINT: Allow export/import of bools in dlpackSebastian Berg2023-01-273-19/+147
| | | | | | | | | | Updates the header file and accept as well as export boolean now that the header includes a definition for it.
* | Merge pull request #23073 from DWesl/patch-2Matti Picus2023-01-301-0/+20
|\ \ | | | | | | CI: Rebase NumPy compiled extension test modules on Cygwin
| * | CI: Rebase numpy DLLs in runtests.py.DWesl2023-01-301-1/+2
| | | | | | | | | | | | | | | This assumes NumPy is rebased before tests run, but does not assume the locations are in the database.
| * | TST: Rebase F2Py-built extension modules.DWesl2023-01-291-0/+19
| | | | | | | | | | | | | | | Also adjust CI so they don't immediately collide with NumPy. I forgot to do that last time, which caused problems.
| * | Revert "FIX: Add glob import for test module rebase."DWesl2023-01-271-1/+0
| | | | | | | | | | | | This reverts commit 33709afdbbc47b7adb7dd06a730246d8c02f724f.
| * | Revert "TST: Rebase F2Py test modules on Cygwin."DWesl2023-01-271-16/+0
| | | | | | | | | | | | This reverts commit 608864613b801b9c85573186a9d07eeac5e7e465.
| * | FIX: Add glob import for test module rebase.DWesl2023-01-271-0/+1
| | | | | | | | | | | | Forgot to check this earlier.
| * | TST: Rebase F2Py test modules on Cygwin.DWesl2023-01-261-0/+16
| | | | | | | | | | | | Let's see if this fixes the 8-50 fork failures.
* | | Add missing <type_traits> header.Peter Hawkins2023-01-301-0/+1
| | | | | | | | | | | | | | | `std::is_scalar` is defined in `type_traits`, which is missing from the includes.
* | | BUG: Fix crash when using complex double scalars with NEP 50Sebastian Berg2023-01-291-1/+2
| | | | | | | | | | | | | | | | | | Not adding a test since there is already a test that crashes due to this, it just isn't used with weak promotion and right now I am hoping I may be able to make the test suite runnable enabling it.
* | | Merge pull request #22165 from ↵Matti Picus2023-01-299-309/+656
|\ \ \ | | | | | | | | | | | | | | | | Developer-Ecosystem-Engineering/simd_isnan_isinf_isfinite_signbit ENH: Implement SIMD versions of isnan,isinf, isfinite and signbit
| * | | Fix crashes when using MSVC. Unnesting function calls allows more inlining.Developer-Ecosystem-Engineering2023-01-051-65/+56
| | | |
| * | | Fix type conversions for gccDeveloper-Ecosystem-Engineering2023-01-041-14/+14
| | | |
| * | | Include simd.h before using NPY_SIMD_BIGENDIANDeveloper-Ecosystem-Engineering2023-01-041-20/+19
| | | |
| * | | Address feedback from 2022-12-14Developer-Ecosystem-Engineering2023-01-041-342/+361
| | | |
| * | | Update .gitignore and meson.build for loops_unary_fp_le.dispatch.c.srcDeveloper-Ecosystem-Engineering2023-01-041-0/+1
| | | |
| * | | Clean-up merge to mainDeveloper-Ecosystem-Engineering2023-01-041-42/+0
| | | |
| * | | fix commentDeveloper-Ecosystem-Engineering2023-01-041-1/+1
| | | |
| * | | move split test to test_fp_noncontiguous, remove use of as_strided as it was ↵Developer-Ecosystem-Engineering2023-01-041-53/+10
| | | | | | | | | | | | | | | | reading random data and not reliable also didn't give additional coverage
| * | | fix lint & add test_fp_noncontiguousDeveloper-Ecosystem-Engineering2023-01-041-9/+48
| | | |
| * | | see if stride_tricks can give us more coverageDeveloper-Ecosystem-Engineering2023-01-041-1/+37
| | | |
| * | | add some tests with different shape arraysDeveloper-Ecosystem-Engineering2023-01-041-1/+16
| | | |
| * | | re-enable vx and vxe (avoid perf regressions) for existing code by splitting ↵Developer-Ecosystem-Engineering2023-01-046-463/+577
| | | | | | | | | | | | | | | | this new code into a new file
| * | | add tests to test_simd.pyDeveloper-Ecosystem-Engineering2023-01-041-0/+33
| | | |
| * | | Resolve linux32 stride failuresDeveloper-Ecosystem-Engineering2023-01-041-2/+3
| | | | | | | | | | | | | | | | On linux 32 an assert fires where stride (12) passed from ufunc_object (try_trivial_single_output_loop) to DOUBLE_isnan and DOUBLE_isfinite doesn't match the type size (8), we can relax this assert and instead fall back to the UNARY_LOOP path instead
| * | | Resolve linux 32 failuresDeveloper-Ecosystem-Engineering2023-01-041-2/+7
| | | | | | | | | | | | | | | | We don't see these failures but CI is hitting them, attempting to resolve
| * | | resolve additional platform test failuresDeveloper-Ecosystem-Engineering2023-01-042-11/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Special case SSE Fix PPC64 build Only use vqtbl4q_u8 on A64 Stop trying to use optimizations on s390x
| * | | Add vector casts to resolve additional cygwin failuresDeveloper-Ecosystem-Engineering2023-01-041-4/+4
| | | |
| * | | Address cygwin failuresDeveloper-Ecosystem-Engineering2023-01-041-1/+1
| | | |
| * | | Fix gcc failuresDeveloper-Ecosystem-Engineering2023-01-041-32/+33
| | | | | | | | | | | | | | | | | | | | | | | | Use reinterpret to support casting across many compiler generations Resolve deprecation warnings
| * | | ENH: Implement SIMD versions of isnan,isinf, isfinite and signbitDeveloper-Ecosystem-Engineering2023-01-045-277/+427
| | | | | | | | | | | | | | | | NumPy has SIMD versions of float / double `isnan`, `isinf`, `isfinite`, and `signbit` for SSE2 and AVX-512. The changes here replace the SSE2 version with one that uses their universal intrinsics. This allows other architectures to have SIMD versions of the functions too.
* | | | DOC:fix type in bitwise_iorArun Kota2023-01-291-1/+1
| | | |
* | | | Merge pull request #23113 from hmaarrfk/slots_for_mixinsSebastian Berg2023-01-272-0/+11
|\ \ \ \ | | | | | | | | | | ENH: Add slots to NDArrayOperatorsMixin allowing them in subclasses
| * | | | TST: Add a test for slots and NDArrayOperatorsMixin subclassingMark Harfouche2023-01-271-0/+10
| | | | |
| * | | | ENH: Add slots to NDArrayOperatorsMixin to make subclsasing smootherMark Harfouche2023-01-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I use the mixings in a few different file backed arrays. However, the lack of slots make it difficult for me to use slots. I mostly use slots to ensure that performance optimized code doesn't create unecessary references to large chunks of memory. If all parent classes do not have `__slots__` defined, I think that Python (3.9) just ignores `__slots__` alltogether. Thank you for considering.
* | | | | API: Raise EOFError when trying to load past the end of a `.npy` file (#23105)Noé Rubinstein2023-01-272-0/+15
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the following code: ``` import numpy as np with open('foo.npy', 'wb') as f: for i in range(np.random.randint(10)): np.save(f, 1) with open('foo.npy', 'rb') as f: while True: np.load(f) ``` Will raise: ``` ValueError: Cannot load file containing pickled data when allow_pickle=False ``` While there is no pickled data in the file.
* | | | Merge pull request #22559 from richierocks/document_diag_indices_fromMatti Picus2023-01-261-0/+26
|\ \ \ \ | | | | | | | | | | DOC #22266 Add examples for diag_indices_from()
| * \ \ \ Merge branch 'main' into document_diag_indices_fromRoss Barnowski2023-01-25312-6029/+10513
| |\ \ \ \
| * | | | | DOC: Fix example spacing and move to end of docstring.Ross Barnowski2023-01-251-11/+11
| | | | | |
| * | | | | Add examples for diag_indices_from()Richie Cotton2022-11-081-0/+26
| | | | | |
* | | | | | Merge pull request #23098 from ganesh-k13/bug_config_array_mesonSebastian Berg2023-01-261-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: Handle arrays in `conf_data`
| * | | | | | BUG: Handle arrays in `conf_data`ganesh-k132023-01-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `configuration_data` does not support `lists` as the data argument * ref: https://mesonbuild.com/Reference-manual_functions.html#arguments12
* | | | | | | Merge pull request #23045 from MikiPWata/doc/improve_nbytes_description-22925Matti Picus2023-01-261-0/+6
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | DOC: Improved nbytes description
| * | | | | | STY: rm newline.Ross Barnowski2023-01-251-2/+1
| | | | | | |
| * | | | | | DOC: Improved nbytes description渡邉 美希2023-01-191-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DOC: Improved nbytes description DOC: Improved nbytes description DOC: Improved nbytes description
* | | | | | | Merge pull request #23093 from seberg/f2py-error-handling-is-a-messCharles Harris2023-01-251-1/+8
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | BUG: Fixup f2py's handling a very little bit
| * | | | | | | BUG: Fixup f2py's handling a very little bitSebastian Berg2023-01-251-1/+8
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This clears the error holding only to the type. Since in the other path the errmessage seemed completely uninitialized, I opted to just ignore it entirely and keep the old error. I could fathom to use error chaining here, but overall, I am not even sure that chaining makes even sense for these errors. This fix is meant to be minimal (the second one, I just noticed randomly), it does not make this code clean.