summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | | Merge pull request #22939 from seberg/arm64-symbol-export-helpMatti Picus2023-01-074-19/+18
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | MAINT: Move export for scipy arm64 helper into main module
| | * | | | | | | | | | MAINT: Move export for scipy arm64 helper into main moduleSebastian Berg2023-01-054-19/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a follow up to gh-22679 which addressed gh-22673. The main thing is that we want the functions to be available after importing NumPy, so they need to be part of multiarray. However, `npymath` is a static library, so the symbols are not really exported there. The former PR did actually work in practice but this seems like it is technically the right place? For some reason, I had to add nextafter to be able to do: from scipy.spatial.distance import euclidean with the SciPy 1.9.3 wheels. SciPy test collection works with this for the 1.9.3 wheel, so this should be all the symbols hopefully.
| * | | | | | | | | | | Merge pull request #22947 from seberg/attribute-error-helpMatti Picus2023-01-072-2/+53
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | MAINT: Add additional information to missing scalar AttributeError
| | * | | | | | | | | | | MAINT: Add additional information to missing scalar AttributeErrorSebastian Berg2023-01-052-2/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a followup on gh-22607 which removed them. Since it appears some users missed the DeprecationWarning entirely, it may help them to include the old information as an attribute error. An example is: ``` In [1]: np.int AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ``` Yes, that is very verbose... your changes. Lines starting
| * | | | | | | | | | | | BUG, SIMD: Fix spurious invalid exception for sin/cos on arm64/clangSayed Adel2023-01-061-2/+27
| | |/ / / / / / / / / / | |/| | | | | | | | | |
| * | | | | | | | | | | ENH: Create string dtype instances from the abstract dtype (#22923)Nathan Goldbaum2023-01-052-1/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following up from #22863 (comment), this makes it possible to create string dtype instances from an abstract string DTypeMeta. Co-authored-by: Sebastian Berg <sebastianb@nvidia.com>
| * | | | | | | | | | | TST: Add fixture to avoid issue with randomizing test order.Ross Barnowski2023-01-041-0/+4
| | |_|_|_|/ / / / / / | |/| | | | | | | | |
| * | | | | | | | | | TST: split long ufunc.at test (#22918)Matti Picus2023-01-031-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup from #22889
| * | | | | | | | | | Merge pull request #22889 from mattip/speedup-ufunc.at-mainSebastian Berg2023-01-034-220/+392
| |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / | |/| | | | | | | | | ENH: Speedup ufunc.at when casting is not needed
| | * | | | | | | | | MAINT: test broadcasting; test, fix output casting (from review)mattip2023-01-032-4/+18
| | | | | | | | | | |
| | * | | | | | | | | MAINT: remove overly-cautious check (from review)mattip2023-01-031-16/+10
| | | | | | | | | | |
| | * | | | | | | | | TST: use clean copiesmattip2023-01-031-5/+8
| | | | | | | | | | |
| | * | | | | | | | | MAINT: add missing test cases (from review)mattip2023-01-032-6/+33
| | | | | | | | | | |
| | * | | | | | | | | MAINT: improve coverage of slow path by using a user-defined dtypemattip2023-01-031-2/+9
| | | | | | | | | | |
| | * | | | | | | | | MAINT: remove dead code path (from review)mattip2023-01-031-6/+0
| | | | | | | | | | |
| | * | | | | | | | | MAINT: enable fast_path in more cases (from review)mattip2023-01-032-18/+8
| | | | | | | | | | |
| | * | | | | | | | | Revert "MAINT: elide the generic_wrapped_legacy_loop wrapper out of the hot ↵mattip2023-01-022-24/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | loop" This reverts commit 154c293786a29cfbf976f08cab48698166d99399.
| | * | | | | | | | | use 4 for float, 2 for double in fast-path countmattip2022-12-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: mattip <matti.picus@gmail.com>
| | * | | | | | | | | use better semantics for calling PyArray_DiscardWritebackIfCopymattip2022-12-291-1/+1
| | | | | | | | | | |
| | * | | | | | | | | lower limit to 2, improves benchmarksmattip2022-12-281-1/+1
| | | | | | | | | | |
| | * | | | | | | | | fix for non-generic_legacy loppsmattip2022-12-281-0/+4
| | | | | | | | | | |
| | * | | | | | | | | MAINT: do not try SIMD arithmetic loops if count < 4mattip2022-12-281-1/+1
| | | | | | | | | | |
| | * | | | | | | | | MAINT: elide the generic_wrapped_legacy_loop wrapper out of the hot loopmattip2022-12-282-8/+24
| | | | | | | | | | |
| | * | | | | | | | | add fast iter loop and benchmarkmattip2022-12-261-10/+85
| | | | | | | | | | |
| | * | | | | | | | | refactor part that does the iteration into functionmattip2022-12-261-177/+188
| | | | | | | | | | |
| | * | | | | | | | | refactor ufunc_at in preparation for breaking it into sub-functionsMatti Picus2022-12-261-194/+225
| | | | | | | | | | |
| | * | | | | | | | | ENH: find the place to add a fast path for ufunc_atMatti Picus2022-12-262-1/+22
| | | | | | | | | | |
| * | | | | | | | | | BUG: Fixes for numpy.testing.overrides (#22879)Nathan Goldbaum2023-01-022-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Followup for gh-22533. Adds a missing return statement to get_overridable_numpy_ufuncs (oops!) and imports numpy.testing.overrides into numpy.testing so e.g. tab completion on numpy.testing works for overrides.
| * | | | | | | | | | Merge pull request #22905 from l-johnston/add_linspace_testMatti Picus2023-01-021-0/+9
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | TST: Add linspace test case for any_step_zero and not _mult_inplace
| | * | | | | | | | | | TST: Add linspace test case for any_step_zero and not _mult_inplaceLee Johnston2022-12-301-0/+9
| | | |_|_|_|/ / / / / | | |/| | | | | | | |
| * | | | | | | | | | BUG: np.loadtxt cannot load text file with quoted fields separated by ↵dmbelov2023-01-013-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | whitespace (#22906) Fix issue with `delimiter=None` and quote character not working properly (not using whitespace delimiter mode). Closes gh-22899
| * | | | | | | | | | Merge pull request #22777 from pkubaj/patch-1Sayed Adel2022-12-312-4/+20
| |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / | |/| | | | | | | | | ENH: Properly support FreeBSD/powerpc64
| | * | | | | | | | | ENH: Detect CPU features on FreeBSD/powerpc64*pkubaj2022-12-302-4/+20
| | | |/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. FreeBSD uses elf_aux_info() instead of getauxval. 2. Switch to using compiler macros for detecting POWER platform FreeBSD sets the machine name (what uname -m prints) on all powerpc* to just powerpc. To identify actual architecture, uname -p should be used, but this is not present in uname() function. Thus, the only way to correctly detect platform is to use what uname prints and also check compiler defines.
| * | | | | | | | | DOC: Add blurb about rotation direction to rot90 docstring (#22880)Matthew Muresan2022-12-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: Add a note to the documentation of the rot90 The note added indicates that rotation is counter clockwise with the default argumemnts. Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | | | | | | | | Merge pull request #22891 from ev-br/argmin_tests_repeatSebastian Berg2022-12-271-16/+16
| |\ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / | |/| | | | | | | | TST: tests/core/test_multiarray:TestArg{Min,Max}: stray `np.repeat `
| | * | | | | | | | TST: tests/core/test_multiarray:TestArg{Min,Max}Evgeni Burovski2022-12-261-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test does `a.repeat(129)` and discards the result: >>> a.repeat(129) >>> np.argmin(a)
| * | | | | | | | | BUG: Use whole file for encoding checks with `charset_normalizer` [f2py] ↵Rohit Goswami2022-12-253-25/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#22872) * BUG: Use whole file for encoding checks [f2py] * DOC: Add a code comment Co-authored-by: melissawm <melissawm@gmail.com> * TST: Add a conditional unicode f2py test * MAINT: Add chardet as a test requirement * ENH: Cleanup and switch f2py to charset_normalizer * MAINT: Remove chardet for charset_normalizer * TST: Simplify UTF-8 encoding [f2py] Co-authored-by: melissawm <melissawm@gmail.com>
| * | | | | | | | | BUG: Fix integer overflow in in1d for mixed integer dtypes #22877 (#22878)Miles Cranmer2022-12-252-4/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * TST: Mixed integer types for in1d * BUG: Fix mixed dtype overflows for in1d (#22877) * BUG: Type conversion for integer overflow check * MAINT: Fix linting issues in in1d * MAINT: ar1 overflow check only for non-empty array * MAINT: Expand bounds of overflow check * TST: Fix integer overflow in mixed boolean test * TST: Include test for overflow on mixed dtypes * MAINT: Less conservative overflow checks
| * | | | | | | | | revert detection for meson.buildmattip2022-12-252-1/+24
| | | | | | | | | |
| * | | | | | | | | MAINT: restore npymath implementations needed for freebsdmattip2022-12-253-18/+446
| | | | | | | | | |
| * | | | | | | | | Merge pull request #22861 from ↵Matti Picus2022-12-232-4/+39
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Developer-Ecosystem-Engineering/convert_non_bool_to_bool BUG, SIMD: Restore behavior converting non bool input to 0x00/0xff
| | * | | | | | | | | Update logical_and to avoid extra mask ops in AVX512Developer-Ecosystem-Engineering2022-12-211-16/+28
| | | | | | | | | | |
| | * | | | | | | | | Add regression test for gh-22845Developer-Ecosystem-Engineering2022-12-211-0/+11
| | | | | | | | | | |
| | * | | | | | | | | BUG, SIMD: Restore behavior converting non bool input to 0x00/0xffDeveloper-Ecosystem-Engineering2022-12-211-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This resolves https://github.com/numpy/numpy/issues/22845 by restoring prior behavior to convert non bool input
| * | | | | | | | | | Merge pull request #22869 from seberg/issue-22835Charles Harris2022-12-221-0/+2
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | TST: Ignore nan-warnings in randomized nanfunction `out=` tests
| | * | | | | | | | | | TST: Ignore nan-warnings in randomized out testsSebastian Berg2022-12-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests randomize the nan pattern and thus can run into these (additional) warnings, so ignore them. (Could also fix the random seed, but this should do) Closes gh-22835
| * | | | | | | | | | | TST: Fixup string cast test to not use `tiny`Sebastian Berg2022-12-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is not much value in these values anyway probably, but tiny isn't reliably for double-double (maybe it should be, but that is a different issue). Fixup for gh-22855 and gh-22868
| * | | | | | | | | | | Merge pull request #22851 from seiko2plus/issue_22841Sebastian Berg2022-12-223-26/+57
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | BUG, SIMD: Fix memory overlap in ufunc comparison loops
| | * | | | | | | | | | | MAINT: Remove unused umath macros IS_BLOCKABLE_BINARY_BOOL*Sayed Adel2022-12-221-13/+0
| | | | | | | | | | | | |
| | * | | | | | | | | | | BUG, SIMD: Fix memory overlap on comparison accumulateSayed Adel2022-12-212-13/+57
| | |/ / / / / / / / / /