summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Fix internal misuses of `NPY_TITLE_KEY`Eric Wieser2020-02-055-9/+9
| | | | The fact we're obliged to allow `if NPY_TITLE_KEY(...) {` for compatibility doesn't mean we have to keep using the old spelling ourself.
* Merge pull request #15408 from r-devulap/cmplx-simdMatti Picus2020-02-055-16/+456
|\ | | | | ENH: Use AVX-512F for complex number arithmetic, absolute, square and conjugate
| * ENH: Improve performance of absolute for CFLOAT and CDOUBLERaghuveer Devulapalli2020-02-012-26/+92
| |
| * ENH: Use AVX-512F for complex number arithmetic, absolute, square and conjugateRaghuveer Devulapalli2020-02-014-15/+362
| |
| * TEST: Adding tests to validate complex absolute and squareRaghuveer Devulapalli2020-02-011-1/+28
| |
* | Merge pull request #13421 from seiko2plus/core_improve_infa_runtimeMatti Picus2020-02-0510-114/+643
|\ \ | | | | | | ENH: improve runtime detection of CPU features
| * | ENH: improve runtime detection of CPU featuresSayed Adel2020-02-0510-114/+643
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Put the old CPU detection code to rest The current CPU detection code only supports x86 and it's count on compiler built-in functions that not widely supported by other compilers or platforms. NOTE: `npy_cpu_supports` is removed rather than deprecated, use the macro `NPY_CPU_HAVE(FEATURE_NAME_WITHOUT_QUOTES)` instead. - Initialize the new CPU features runtime detector Almost similar to GCC built-in functions, so instead of `__builtin_cpu_init`, `__builtin_cpu_supports` its provide `npy_cpu_init`, `npy_cpu_have` and `NPY_CPU_HAVE`. NOTE: `npy_cpu_init` must be called before any use of `npy_cpu_have` and `NPY_CPU_HAVE`, however `npy_cpu_init` already called during the load of module `umath` so there's no reason to call it again in most of the cases. - Add X86 support detect almost all x86 features, also provide CPU feature groups that gather several features. e.g. `AVX512_KNM` detect Knights Mill's `AVX512` features - Add IBM/Power support only supports Linux and count here on `glibc(getauxval)` to detect VSX support and fail-back to the compiler definitions for other platforms. - Add ARM support Same as IBM/Power but its parse `/proc/self/auxv` if `glibc(getauxval)` isn't available. - Update umath generator - Add testing unit for Linux only - Add new attribute `__cpu_features__` to umath module `__cpu_features__` is a dictionary contains all supported CPU feature names with runtime availability
* | | Update unique docstring exampleJon Morris2020-02-041-2/+2
| | |
* | | MAINT: Do not allow `copyswap` and friends to fail silentlyEric Wieser2020-02-041-0/+6
| | | | | | | | | | | | | | | | | | If these can't do the work that is requested, then we should fail loudly, at least during development. Really the API of these methods is wrong - they should take a `PyArray_Descr`, not an array.
* | | Merge pull request #15500 from eric-wieser/dtype.__reduce__-tweaksSebastian Berg2020-02-031-1/+1
|\ \ \ | | | | | | | | MAINT: Use True/False instead of 1/0 in np.dtype.__reduce__
| * | | MAINT: Use True/False instead of 1/0 in np.dtype.__reduce__Eric Wieser2020-02-031-1/+1
| | | | | | | | | | | | | | | | This doesn't really make much difference, but is a little more correct, a little faster, and produces two fewer bytes of pickle data.
* | | | Merge pull request #15491 from mattip/mark-slowSebastian Berg2020-02-023-0/+3
|\ \ \ \ | | | | | | | | | | TST: mark the top 3 slowest tests to save ~10 seconds
| * | | | TST: mark the top 3 slowest tests to save ~10 secondsmattip2020-02-023-0/+3
| | | | |
* | | | | Merge pull request #15484 from ericmariasis/report_genericMatti Picus2020-02-021-23/+20
|\ \ \ \ \ | |/ / / / |/| | | | ENH: fixing generic error messages to be more specific in multiarray/descriptor.c
| * | | | nabbed the last backslash areaEric Mariasis2020-02-011-2/+2
| | | | |
| * | | | resolved spacing issueEric Mariasis2020-02-011-2/+2
| | | | |
| * | | | resolved merge conflictEric Mariasis2020-02-011-5/+1
| | | | |
| * | | | review actionsEric Mariasis2020-02-011-2/+7
| |\ \ \ \
| | * | | | Update numpy/core/src/multiarray/descriptor.cEric Mariasis2020-02-011-1/+1
| | | | | | | | | | | | | | | | | | Co-Authored-By: Sebastian Berg <sebastian@sipsolutions.net>
| | * | | | Update numpy/core/src/multiarray/descriptor.cEric Mariasis2020-02-011-1/+1
| | | | | | | | | | | | | | | | | | Co-Authored-By: Sebastian Berg <sebastian@sipsolutions.net>
| | * | | | Update numpy/core/src/multiarray/descriptor.cEric Mariasis2020-02-011-1/+2
| | | | | | | | | | | | | | | | | | Co-Authored-By: Sebastian Berg <sebastian@sipsolutions.net>
| | * | | | Update numpy/core/src/multiarray/descriptor.cEric Mariasis2020-02-011-1/+1
| | | | | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| * | | | | seberg review actionsEric Mariasis2020-02-011-4/+11
| |/ / / /
| * | | | more review actionsEric Mariasis2020-02-011-5/+1
| | | | |
| * | | | Update numpy/core/src/multiarray/descriptor.cEric Mariasis2020-02-011-1/+1
| | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| * | | | Update numpy/core/src/multiarray/descriptor.cEric Mariasis2020-02-011-1/+1
| | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| * | | | Update numpy/core/src/multiarray/descriptor.cEric Mariasis2020-02-011-1/+1
| | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| * | | | Update numpy/core/src/multiarray/descriptor.cEric Mariasis2020-02-011-1/+1
| | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| * | | | Update numpy/core/src/multiarray/descriptor.cEric Mariasis2020-02-011-1/+1
| | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| * | | | Update numpy/core/src/multiarray/descriptor.cEric Mariasis2020-02-011-1/+1
| | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| * | | | Update numpy/core/src/multiarray/descriptor.cEric Mariasis2020-02-011-1/+1
| | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| * | | | inlining single use functionEric Mariasis2020-02-011-10/+1
| | | | |
| * | | | Merge branch 'report_generic' of https://github.com/ericmariasis/numpy into ↵Eric Mariasis2020-02-011-3/+3
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | report_generic * 'report_generic' of https://github.com/ericmariasis/numpy: Update numpy/core/src/multiarray/descriptor.c Update numpy/core/src/multiarray/descriptor.c Update numpy/core/src/multiarray/descriptor.c
| | * | | | Update numpy/core/src/multiarray/descriptor.cEric Mariasis2020-02-011-1/+1
| | | | | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| | * | | | Update numpy/core/src/multiarray/descriptor.cEric Mariasis2020-02-011-1/+1
| | | | | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| | * | | | Update numpy/core/src/multiarray/descriptor.cEric Mariasis2020-02-011-1/+1
| | | | | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| * | | | | Review actions for issue #15484Eric Mariasis2020-02-011-3/+5
| |/ / / /
| * | | | fixing generic error messages to be more specificEric Mariasis2020-02-011-9/+9
| |/ / /
* | | | Merge pull request #15483 from Bharat123rox/squeezeMatti Picus2020-02-021-1/+11
|\ \ \ \ | | | | | | | | | | [DOC] Mention behaviour of np.squeeze with one element
| * | | | Update according to reviewBharat Raghunathan2020-02-021-1/+1
| | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| * | | | Updated statement and example according to review commentsBharat Raghunathan2020-02-021-8/+5
| | | | |
| * | | | Merge branch 'squeeze' of https://github.com/Bharat123rox/numpy into squeezeBharat Raghunathan2020-02-021-1/+1
| |\ \ \ \
| | * | | | Update numpy/core/fromnumeric.py with review commentBharat Raghunathan2020-02-011-1/+1
| | | | | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| * | | | | Merge branch 'master' of https://github.com/numpy/numpy into squeezeBharat Raghunathan2020-02-0217-982/+509
| |\ \ \ \ \ | | |/ / / / | |/| | | / | | | |_|/ | | |/| |
| * | | | [DOC] Mention special case of np.squeeze with one elementBharat Raghunathan2020-02-011-1/+14
| | |/ / | |/| |
* | | | Merge pull request #15427 from seberg/deprecate-unused-c-apiMatti Picus2020-02-025-24/+92
|\ \ \ \ | |_|/ / |/| | | DEP: Schedule unused C-API functions for removal/disabling
| * | | DEP: Deprecate PyUFunc_SetUsesArraysAsDataSebastian Berg2020-01-312-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function is currently undocumented. It is not used in NumPy and seems useless outside of NumPy. This is due to the fact that user datatypes are not actually capable of leveraging this function! They are stored in a different way, so that their loops cannot be identified by an index.
| * | | DEP: Deprecate PyUFunc_GenericFunction public C-API functionSebastian Berg2020-01-311-7/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function provides mainly the same API as PyObject_Call() with the exception of skipping ufunc overrides and output array wraps. It is fairly unwieldy to use, since ownership of all inputs and outputs is transferred, but otherwise it still uses args and kwargs as inputs. As such, no known usage exists and PyObject_Call seems a reasonable replacement for possible usage. Keeping it around means that we would may have to add tests or risk breaking this function when ufunc code is refactored.
| * | | DEP: Schedule PyArray_GetArrayParamsFromObject for removalSebastian Berg2020-01-314-17/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function has no known usage outside of NumPy. It is fairly complex to use due to how it behaves with scalars, and, at least with a given "flexible" dtype would require additional access to the private PyArray_AdaptFlexibleDType function. Removing the function from public API will simplify refactor work of the dtype and dimension recovery.
* | | | Merge pull request #14867 from r-devulap/maximum-avxMatti Picus2020-02-015-23/+276
|\ \ \ \ | | | | | | | | | | ENH: Use AVX-512F for np.maximum and np.minimum