summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | | | Merge pull request #22986 from seberg/issue-22984Charles Harris2023-01-102-5/+54
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: Ensure correct loop order in sin, cos, and arctan2
| * | | | | | | | | | | | | BUG: Ensure correct loop order in sin, cos, and arctan2Sebastian Berg2023-01-102-5/+54
| |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These were incorrect afer being vectorized. The commit additional tests these (not arctan2 admittedly) and adds a check to generate_umath to make it a bit less likely that future additions add this type of thing. Note that the check allows duplicated loops so long they are correctly ordered the *first* time. This makes results correct, but duplicated loops are not nice anyways and it would be nice to remove them. We could drop them manually in hindsight even? In any case, that should not be backported, so it is not includedhere. Closes gh-22984
* | | | | | | | | | | | | ENH: allow NEP 42 dtypes to work with np.char (#22863)Nathan Goldbaum2023-01-106-43/+111
|/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it possible for new-style NEP 42 string dtypes like ASCIIDType to work with the functions in np.char, this has leads to some mild modification (stricter behavior in bad paths). It will only work with dtypes with a scalar that subclasses str or bytes. I also assume that you can create instances of the user dtype from python like dtype_instance = CustomDType(size_in_bytes). This is a pretty big assumption about the API of the dtype, I'm not sure offhand how I can do this more portably or more safely. I also added a new macro, NPY_DT_is_user_defined, which checks dtype->type_num == -1, which is currently true for all custom dtypes using the experimental dtype API. This new macro is needed because NPY_DT_is_legacy will return false for np.void. This is only tested via the user dtypes currently.
* | | | | | | | | | | | Merge pull request #22980 from charris/fix-clang-suggestionsRalf Gommers2023-01-101-2/+2
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MAINT: Fix some noisy clang suggestions. [ci skip]
| * | | | | | | | | | | | MAINT: Fix some noisy clang suggestions.Charles Harris2023-01-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The suggestions looks like: ``` numpy/core/src/npysort/selection.cpp:426:39: warning suggest braces around initialization of subobject [-Wmissing-braces] arg_map{Tags::type_value, &introselect_noarg<Tags>, ^~~~~~~~~~~~~~~~~~~~~~~~ { } ```
* | | | | | | | | | | | | DOC: remove extraneous backtick from warning (#22981)Eddie Darling2023-01-091-1/+1
|/ / / / / / / / / / / /
* | | | | | | | | | | | Merge pull request #22779 from LeonaTaric/numpy_issue22745Charles Harris2023-01-091-0/+2
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | DOC: All integer values must be non-negative
| * | | | | | | | | | | | 去掉noteLeonaTaric2023-01-091-3/+2
| | | | | | | | | | | | |
| * | | | | | | | | | | | change note toLeonaTaric2022-12-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "All integer values must be non-negative"
| * | | | | | | | | | | | All entropy/seed not None must be non-negativeLeonaTaric2022-12-131-0/+3
| | | | | | | | | | | | |
* | | | | | | | | | | | | DOC: Remove Gitpod as a local build option for users (#22911)Mukulika2023-01-092-23/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: Remove Gitpod as a local build option for users Co-authored-by: Matti Picus <matti.picus@gmail.com>
* | | | | | | | | | | | | Merge pull request #22964 from charris/update-ci-test-matrixTyler Reddy2023-01-081-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | MAINT: Update python 3.11-dev to 3.11.
| * | | | | | | | | | | | | MAINT: Update python 3.11-dev to 3.11.Charles Harris2023-01-081-1/+1
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Bug: Fix fill violating read-only flag. (#22959)Panagiotis Zestanakis2023-01-082-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PyArray_FillWithScalar checks if destination is writeable before attempting to fill it. A relevant test is added as a method of TestRegression Closes gh-22922 Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* | | | | | | | | | | | | | Merge pull request #22934 from oscargus/nep29datesCharles Harris2023-01-081-1/+10
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / |/| | | | | | | | | | | | | DOC: Add releases to NEP 29
| * | | | | | | | | | | | | DOC: Add releases to NEP29Oscar Gustafsson2023-01-051-1/+10
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Merge pull request #22962 from mattip/dll-nameCharles Harris2023-01-084-43/+10
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MAINT: use pypy3.9 in testing
| * | | | | | | | | | | | | | MAINT: use pypy3.9 in testingmattip2023-01-084-43/+10
|/ / / / / / / / / / / / / /
* | | | | | | | | | | | | | DOC: Update docstring of `multivariate_normal` (#22938)Malte Londschien2023-01-071-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make a note on results depending on system due. Closes gh-22919
* | | | | | | | | | | | | | 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
* | | | | | | | | | | | | | | Merge pull request #22955 from SUPERustam/patch-1Matti Picus2023-01-071-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update LICENSE.txt
| * | | | | | | | | | | | | | | Update LICENSE.txtRustam Uzdenov2023-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change year of Copyright in LICENSE
* | | | | | | | | | | | | | | | Merge pull request #22954 from seiko2plus/issue_22933Sebastian Berg2023-01-061-2/+27
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | BUG, SIMD: Fix spurious invalid exception for sin/cos on arm64/clang
| * | | | | | | | | | | | | | | BUG, SIMD: Fix spurious invalid exception for sin/cos on arm64/clangSayed Adel2023-01-061-2/+27
| | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | DOC: remove old LaTeX hack if Sphinx is at 5.0.0 or later (fix #22941) (#22952)Jean-François B2023-01-061-5/+10
|/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes an old LaTeX hack if Sphinx is at 5.0.0+. The hack served to insert a newline after each parameter name before its description and is unneeded as Sphinx 5+ does it (otherwise) and it now causes extra vertical whitespace. If one day in future NumPy pins Sphinx to be at least 5.0.0, the whole thing will become removable. Closes #22941 EDIT: this also removes \usepackage{xcolor}. Sphinx for many many years uses xcolor if it is available.
* | | | | | | | | | | | | | | Merge pull request #22943 from mattip/circleci-keysSebastian Berg2023-01-051-3/+3
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MAINT: change circleCI keys
| * | | | | | | | | | | | | | | MAINT: change circleCI keysmattip2023-01-051-3/+3
| | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | Merge pull request #22937 from mlondschien/fix-typo-in-nep-19Sebastian Berg2023-01-051-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | DOC: Fix typo in NEP-19
| * | | | | | | | | | | | | | | Fix typo in NEP-19.Malte Londschien2023-01-051-1/+1
| | |/ / / / / / / / / / / / / | |/| | | | | | | | | | | | |
* | | | | | | | | | | | | | | Merge pull request #22936 from jfbu/latex_fixfontencSebastian Berg2023-01-051-1/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / |/| | | | | | | | | | | | | | DOC: (LaTeX) fix 'fontenc' key for usage with xelatex
| * | | | | | | | | | | | | | DOC: (LaTeX) fix 'fontenc' key for usage with xelatexJean-François B2023-01-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sphinx documentation says Do not use this key for a latex_engine other than 'pdflatex'. https://www.sphinx-doc.org/en/master/latex.html#the-latex-elements-configuration-setting The 'fontenc': r'\usepackage[LGR,T1]{fontenc}' was useful with pdflatex for support of occasional Greek. But with xelatex and the FreeFont which is used by default by Sphinx with it, the Greek script is already supported.
* | | | | | | | | | | | | | | ENH: Create string dtype instances from the abstract dtype (#22923)Nathan Goldbaum2023-01-053-1/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | | | | | | | | | | Merge pull request #22931 from rossbar/fix-gh-22825Sebastian Berg2023-01-051-0/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / |/| | | | | | | | | | | | | | TST: Add fixture to avoid issue with randomizing test order.
| * | | | | | | | | | | | | | TST: Add fixture to avoid issue with randomizing test order.Ross Barnowski2023-01-041-0/+4
| | |_|_|_|/ / / / / / / / / | |/| | | | | | | | | | | |
* | | | | | | | | | | | | | Merge pull request #22927 from felixxm/travisRalf Gommers2023-01-041-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MAINT: Remove distutils usage in travis-test.sh. [ci skip]
| * | | | | | | | | | | | | MAINT: Remove distutils usage in travis-test.sh.Mariusz Felisiak2023-01-041-1/+1
|/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | distutils module was removed in Python 3.12.
* | | | | | | | | | | | | TST: split long ufunc.at test (#22918)Matti Picus2023-01-031-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup from #22889
* | | | | | | | | | | | | Merge pull request #22917 from mattip/NPY_DISABLE_CPU_FEATURESSayed Adel2023-01-033-6/+22
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | DOC: document NPY_DISABLE_CPU_FEATURES
| * | | | | | | | | | | | | DOC: move section (from review) [skip ci]mattip2023-01-033-26/+19
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | DOC: document NPY_DISABLE_CPU_FEATURESmattip2023-01-032-3/+26
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Merge pull request #22889 from mattip/speedup-ufunc.at-mainSebastian Berg2023-01-035-220/+402
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / / |/| | | | | | | | | | | | | ENH: Speedup ufunc.at when casting is not needed
| * | | | | | | | | | | | | MAINT: test broadcasting; test, fix output casting (from review)mattip2023-01-032-4/+18
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | BENCH: use intp dtype when indexingMatti Picus2023-01-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
| * | | | | | | | | | | | | 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
| | | | | | | | | | | | | |