summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* ENH: cpu features detection implementation on FreeBSD ARMDavid Carlier2021-01-171-1/+24
|
* Merge pull request #18157 from alexhenrie/no_castable_outputSebastian Berg2021-01-141-1/+1
|\ | | | | BUG: Initialize value of no_castable_output used in ufunc_loop_matches
| * BUG: Initialize value of no_castable_output used in ufunc_loop_matchesAlex Henrie2021-01-121-1/+1
| |
* | Use sinus based formula for `chebpts1`Weh Andreas2021-01-141-2/+2
| |
* | MAINT: Remove redundant null check before freeAlex Henrie2021-01-121-3/+1
|/
* Merge pull request #18152 from seberg/fix-string-object-promotionCharles Harris2021-01-112-35/+38
|\ | | | | BUG: Promotion between strings and objects was assymetric
| * BUG: Promotion between strings and objects was assymetricSebastian Berg2021-01-112-35/+38
| | | | | | | | | | | | | | | | | | | | After an unrelated fix, the logic for string and object promotion was incorrect briefly, this fixes it to be correct (symmetric). Before, string and unicode would return that `string.__common_dtype(object)` is in fact `string`, which is of course incorrect. (since `object.__common_dtype__(other)` always returns `object` this depended on the order, and the NumPy tests apparently did only test the opposite direction (or nothing).
* | Merge pull request #18136 from ↵Sebastian Berg2021-01-111-0/+5
|\ \ | |/ |/| | | | | Iamsoto/add_keyboard_interrupts_for_array_creation ENH: Adding keyboard interrupt support for array creation
| * ENH: keyboard interrupt for large array creationiamsoto2021-01-081-0/+5
| |
* | Merge pull request #18104 from ↵Charles Harris2021-01-102-43/+42
|\ \ | | | | | | | | | | | | DWesl/change-tests-with-loops-to-parametrized-tests TST: Turn some tests with loops into parametrized tests.
| * | TST: Change big parametrized loop to nested small parametrized loops.DWesl2021-01-032-28/+9
| | | | | | | | | | | | | | | | | | | | | Suggested by charris for clarity. Since I'm not marking some tests xfail based on the values of all parameters, this looks nicer.
| * | TST: Turn some tests with loos into parametrized tests.DWesl2021-01-012-43/+61
| | | | | | | | | | | | | | | | | | | | | I wanted to mark only some parts of the loops as xfail for another PR. That part of the PR probably won't make it into numpy, but I think parametrized tests give better information on failure than tests with loops do, so I'm submitting these here.
* | | Merge pull request #18118 from seiko2plus/issue_18106Matti Picus2021-01-094-48/+72
|\ \ \ | | | | | | | | BUG, MAINT: improve avx512 mask logical operations
| * | | BUG, MAINT: improve avx512 mask logical operationsSayed Adel2021-01-052-47/+55
| | | | | | | | | | | | | | | | | | | | It also fixes conversion warning between `__mmask16` and `__mmask8` on msvc2019 when logical intrinsics of AVX512DQ are available.
| * | | BLD: Add extra check for AVX512DQ mask conversionsSayed Adel2021-01-052-1/+17
| | | |
* | | | Merge pull request #17863 from seberg/restructure-cast-loops-masterMatti Picus2021-01-0915-70/+2052
|\ \ \ \ | | | | | | | | | | MAINT: Implement new casting loops based on NEP 42 and 43
| * | | | MAINT: Implement new casting loops based on NEP 42 and 43Sebastian Berg2021-01-0814-60/+2046
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | switch to using new casting as default to run full CI Initialize casting to silence compile warnings only... BUG: As my comment even said, out_needs_api is caller-initialized so I shouldn't init it to 0, it might disable api again. Simplify tests again, it seems unnecessar to go this complex Simplify `#if` as the variable should always be defined TST: Add more tests (and some related fixes) This fixes a few small things (i.e. the decref loop can be NULL and checking for writeable was incorrect in the private API). Mostly adds new tests for some internal API as well as for the copy of the auxiliar data. The nditer test however also is a heavyweight tests for the general multistep casting
| * | | | MAINT: Move modref definition into setup.pySebastian Berg2021-01-072-10/+6
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems the only reason this did not cause problems before was that the test checking for C warnings only ran on a run where these were always 0 and thus undefined (and so were not redefined later). The `#ifndef` would have to happen at a later time apparently, so just avoid it.
* | | | Merge pull request #18109 from PhanatosZou/chain-exceptionsSebastian Berg2021-01-081-1/+1
|\ \ \ \ | |/ / / |/| | | MAINT: Fix exception cause in mingw32ccompiler.py
| * | | fix exception cause in mingw32ccompiler.pyPhanatosZou2021-01-031-1/+1
| |/ /
* | | ENH, SIMD: Ditching the old CPU dispatcher(Exp & Log) (#18101)Sayed Adel2021-01-078-1247/+1347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The second patch in a series of pull-requests aims to facilitate the migration process to our new SIMD interface(NPYV). It is basically a process that focuses on getting rid of the main umath SIMD source `simd.inc`, which contains almost all SIMD kernels, by splitting it into several dispatch-able sources without changing the base code, which facilitates the review process during the move to NPYV(universal intrinsics). In this patch, we have moved the the following raw SIMD loops to the new dispatcher: - FLOAT_exp, DOUBLE_exp - FLOAT_log, DOUBLE_log - FLOAT_frexp, DOUBLE_frexp - FLOAT_ldexp, DOUBLE_ldexp
* | | DEP: Deprecate `data_type.dtype` if attribute is not already a dtype (#13578)Sebastian Berg2021-01-065-49/+80
| | | | | | | | | | | | | | | | | | * DEP: Deprecate `data_type.dtype` if attribute is not already a dtype After the deprecation, a recursive lookup for `.dtype` will not be possible, since `.dtype` has to be a dtype instance.
* | | Merge pull request #18115 from seberg/half-promotionCharles Harris2021-01-062-4/+21
|\ \ \ | | | | | | | | BUG: Fix promotion of half and string
| * | | BUG: Fix promotion of half and stringSebastian Berg2021-01-042-4/+21
| |/ / | | | | | | | | | | | | | | | | | | I somehow managed to miss that half breaks the order of dtypes and has a higher number than the strings. Could be backported, but it doesn't really matter, since it only makes a difference if the compile time flag is used and even then is pretty fringe.
* | | MAINT: CPUs that support unaligned access. (#18065)Chunlin2021-01-056-16/+14
| | | | | | | | | | | | | | | * add CPUs that support unaligned access. * add comments demonstrate the common scenoirs of unaligned access.
* | | Merge pull request #18086 from seiko2plus/fix_simd_aarch64_clangMatti Picus2021-01-053-11/+18
|\ \ \ | |/ / |/| | BUG, SIMD: Fix _simd module build for 64bit Arm/neon clang
| * | BUG, SIMD: Fix _simd module build for 64bit ARM/NEON clangSayed Adel2020-12-293-11/+18
| | |
* | | Merge pull request #18100 from seiko2plus/issue_18092Matti Picus2021-01-034-31/+51
|\ \ \ | | | | | | | | BUG, BLD: Generate the main dispatcher config header into the build dir
| * | | MAINT, BLD: few tweaks in the comments and log messageSayed Adel2021-01-032-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Matti Picus <matti.picus@gmail.com> Co-authored-by: h-vetinari <h.vetinari@gmx.com> Co-authored-by: Derek Homeier <dhomeie@gwdg.de>
| * | | BUG, BLD: Generate the main dispatcher config header into the build dirSayed Adel2021-01-034-28/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new path becomes `build/src.*/numpy/distutils/include/npy_cpu_dispatch_config.h` instead of `numpy/core/src/common/_cpu_dispatch.h`. The new path allows other projects to re-use the CPU dispatcher once we decide to expose the following headers: - `numpy/core/src/common/npy_cpu_dispatch.h` - `numpy/core/src/common/npy_cpu_features.h`
* | | | TST: Avoid changing odd tempfile names in tests' site.cfgDWesl2021-01-011-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | CI once produced a tempfile name with the string 'mkl' embedded. The old code changed this as well as the section name. This should ensure only section names get changed, and the restriction on the number of replacements should catch any weird corner cases, since I think the sections came first.
* | | Merge pull request #18062 from krnilo/add-lstsq-detailsCharles Harris2020-12-301-2/+3
|\ \ \ | |/ / |/| | DOC: add missing details to linalg.lstsq docstring
| * | STY: Add spaces around '-'.Charles Harris2020-12-301-1/+1
| | | | | | | | | [ci skip]
| * | DOC: add missing details to linalg.lstsq docstringNilo Kruchelski2020-12-301-2/+3
| | | | | | | | | | | | | | | | | | | | | It turns out that lstsq also minimizes the 2-norm of x when a is rank-deficient. I found that by searching the documentation for the LAPACK library, which is the current implementation of lstsq (as of Dec 2020). Ref: https://www.netlib.org/lapack/lug/node27.html
* | | Merge pull request #18091 from anntzer/docsetCharles Harris2020-12-298-9/+9
|\ \ \ | | | | | | | | DOC: Avoid using "set of" when talking about an ordered list.
| * | | DOC: Avoid using "set of" when talking about an ordered list.Antony Lee2020-12-298-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... or when the input isn't/cannot be a set. I left a few usages, e.g. in random sampling, where "set" is reasonable as informal description of an array as the order doesn't matter; however, for e.g. np.gradient the order of the returned list is clearly important, so "set" is wrong. Also some other minor doc edits noticed during the grepping: using `shape` instead of `form` in `cov` is consistent with most other places; the wording in `Polynomial.trim` now matches other methods on the same class.
* | | | MAINT: multiline regex class simplifyTyler Reddy2020-12-296-13/+13
|/ / / | | | | | | | | | | | | | | | * follow up to gh-18083 covering multi-line uses of `re.compile(..` and some cases for `re.match(..` with single (meta)character classes
* | | Merge pull request #18051 from rpolley/deprecate-np-testing-dec-2Matti Picus2020-12-293-211/+260
|\ \ \ | | | | | | | | DEP: deprecate np.testing.dec
| * | | TST: add stacklevel parameter to test calls to warnings.warnRyan Polley2020-12-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | For whatever reason the build system doesn't like the test calls to warnings.warn with no stacklevel parameter inside the tests that I moved.
| * | | TST: move np.testing.dec tests to test_deprecations.pyRyan Polley2020-12-202-211/+213
| | | |
| * | | DEC: update deprecation version to 1.21 and add date commentsRyan Polley2020-12-201-12/+18
| | | |
| * | | DEC: deprecate the decorators in np.testing.decRyan Polley2020-12-201-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | Since the decorators in np.testing.dec are intended for nose test framework support, deprecate them by updating the docstring and adding a warning when they are used on functions
* | | | Merge pull request #18088 from Carreau/doc-wiSebastian Berg2020-12-297-7/+7
|\ \ \ \ | | | | | | | | | | DOC: Update reference to verbatim in a few location.
| * | | | DOC: Update reference to verbatim in a few location.Matthias Bussonnier2020-12-287-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Single backticks default role is reference, while here it seem to be for verbatim. Fix it in a couple of places.
* | | | | MAINT: regex char class improveTyler Reddy2020-12-2811-26/+26
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * replace superfluous single-character regex character classes with their literal string equivalents; this avoids the overhead associated with a character class when there's only a single character enclosed (so there's no benefit to the class overhead) * for more information see: Chapter 6 of: Friedl, Jeffrey. Mastering Regular Expressions. 3rd ed., O’Reilly Media, 2009.
* | | | Merge pull request #18074 from tylerjereddy/treddy_exprtype_regex_simplifyCharles Harris2020-12-261-3/+3
|\ \ \ \ | | | | | | | | | | MAINT: exprtype regex simplify
| * | | | MAINT: exprtype regex simplifyTyler Reddy2020-12-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `determineexprtype_re_1` was modified to remove extraneous character class markers around a single `,` * a similar change was applied for the word metacharacter in `determineexprtype_re_2` and `determineexprtype_re_3` * the third character class in `determineexprtype_re_3` was simplified to remove an escape sequence--by placing the `-` at the start of the character class its metacharacter status can be avoided
* | | | | Merge pull request #18072 from tylerjereddy/treddy_crackfortran_regex_simplify_1Charles Harris2020-12-261-2/+2
|\ \ \ \ \ | |/ / / / |/| | | | MAINT: crackfortran regex simplify
| * | | | MAINT: PR 18072 revisionsTyler Reddy2020-12-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `name_match` regular expression now starts by matching a letter only, based on reviewer feedback
| * | | | MAINT: crackfortran regex simplifyTyler Reddy2020-12-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove extraneous character class markers used in `crackline_re_1`: `\w` and `=` on their own have no benefit to character class `[]` inclusion * `name_match` has a character class that can be simplified because `\w` metacharacter already encompasses the digit metacharacter and the underscore