| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
BUG: Initialize value of no_castable_output used in ufunc_loop_matches
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
BUG: Promotion between strings and objects was assymetric
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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).
|
|\ \
| |/
|/|
| |
| | |
Iamsoto/add_keyboard_interrupts_for_array_creation
ENH: Adding keyboard interrupt support for array creation
|
| | |
|
|\ \
| | |
| | |
| | |
| | | |
DWesl/change-tests-with-loops-to-parametrized-tests
TST: Turn some tests with loops into parametrized tests.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Suggested by charris for clarity.
Since I'm not marking some tests xfail based on the values of all
parameters, this looks nicer.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | | |
BUG, MAINT: improve avx512 mask logical operations
|
| | | |
| | | |
| | | |
| | | |
| | | | |
It also fixes conversion warning between `__mmask16` and `__mmask8`
on msvc2019 when logical intrinsics of AVX512DQ are available.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: Implement new casting loops based on NEP 42 and 43
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
| | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| |/ / /
|/| | | |
MAINT: Fix exception cause in mingw32ccompiler.py
|
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
After the deprecation, a recursive lookup for `.dtype` will not be
possible, since `.dtype` has to be a dtype instance.
|
|\ \ \
| | | |
| | | | |
BUG: Fix promotion of half and string
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | | |
* add CPUs that support unaligned access.
* add comments demonstrate the common scenoirs of unaligned access.
|
|\ \ \
| |/ /
|/| | |
BUG, SIMD: Fix _simd module build for 64bit Arm/neon clang
|
| | | |
|
|\ \ \
| | | |
| | | | |
BUG, BLD: Generate the main dispatcher config header into the build dir
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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`
|
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| |/ /
|/| | |
DOC: add missing details to linalg.lstsq docstring
|
| | |
| | |
| | | |
[ci skip]
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| | | |
| | | | |
DOC: Avoid using "set of" when talking about an ordered list.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
... 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.
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
* follow up to gh-18083 covering multi-line uses
of `re.compile(..` and some cases for `re.match(..`
with single (meta)character classes
|
|\ \ \
| | | |
| | | | |
DEP: deprecate np.testing.dec
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \
| | | | |
| | | | | |
DOC: Update reference to verbatim in a few location.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Single backticks default role is reference, while here it seem to be for
verbatim. Fix it in a couple of places.
|
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* 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.
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: exprtype regex simplify
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* `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
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
MAINT: crackfortran regex simplify
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* `name_match` regular expression now starts by
matching a letter only, based on reviewer
feedback
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* 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
|