summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #19854 from BvB93/nanfunctionsCharles Harris2021-09-092-13/+20
|\ | | | | BUG: Fixed an issue wherein `var` would raise for 0d object arrays
| * TST: Expand `TestNanFunctions_NumberTypes` with 0d arraysBas van Beek2021-09-091-12/+17
| |
| * BUG: Fixed an issue wherein `var` would raise for 0d object arraysBas van Beek2021-09-091-1/+3
| |
* | MAINT: Mark type-check-only ufunc subclasses as ufunc aliases during runtimeBas van Beek2021-09-091-7/+10
|/
* Merge pull request #19827 from charris/cleanup-header-guards-commonCharles Harris2021-09-0825-72/+81
|\ | | | | MAINT: Standardize guards in numpy/core/src/common.
| * MAINT: Standardize guards in numpy/core/src/common.Charles Harris2021-09-0525-72/+81
| |
* | Merge pull request #19826 from charris/cleanup-header-guardsCharles Harris2021-09-0824-75/+89
|\ \ | | | | | | MAINT: Standardize guards in numpy/core/include
| * | MAINT: Standardize header guards,Charles Harris2021-09-0524-75/+89
| |/ | | | | | | | | | | | | | | | | | | | | | | | | This standardizes the header guards in numpy/core/include/numpy. The standard here is `<path>_<name>_H_` For instance, the file file: numpy/core/include/numpy/arrayobject.h guard: NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_ Macro names can be up to 255 characters, so length is not a problem. This convention comes from the Google code style and keeps files with the same name but different locations from stepping on each other.
* | Merge pull request #19829 from charris/cleanup-header-guards-multiarrayCharles Harris2021-09-0846-153/+155
|\ \ | | | | | | MAINT: Standardize guards in numpy/core/src/multiarray.
| * | MAINT: Standardize guards in numpy/core/src/multiarray.Charles Harris2021-09-0546-153/+155
| |/
* | Merge pull request #19850 from nsait-linaro/replace_ssize_t_with_py_ssize_tCharles Harris2021-09-081-1/+1
|\ \ | | | | | | Replace posix specific ssize_t with py_ssize_t to compile on windows
| * | Replace use of ssize_t with Py_ssize_tNiyas Sait2021-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | Noticed a compilation error on windows/python3.10 due to missing definition of ssize_t which seems POSIX specific. Use generic Py_ssize_t provided by python
* | | TST: Make nanfunc test ignore overflow instead of xfailing testSebastian Berg2021-09-071-3/+1
| | | | | | | | | | | | | | | | | | This makes the test more precise, and I ran into having to broaden the xfails otherwise, because right now reduce-likes incorrectly faile to give floating point warnings (and I was fixing that).
* | | Merge pull request #19821 from BvB93/nanfunctionsCharles Harris2021-09-052-75/+89
|\ \ \ | |_|/ |/| | BUG: Fixed an issue wherein certain `nan<x>` functions could fail for object arrays
| * | MAINT: Let `_remove_nan_1d` attempt to identify nan-containing object arraysBas van Beek2021-09-051-2/+4
| | | | | | | | | | | | Use the same approach as in numpy/numpy#9013
| * | MAINT: Copy the `_methods._std` code-path for handling `nanstd` object-arraysBas van Beek2021-09-041-6/+3
| | | | | | | | | | | | https://github.com/numpy/numpy/blob/410a89ef04a2d3c50dd2dba2ad403c872c3745ac/numpy/core/_methods.py#L265-L270
| * | TST: Add more tests for `nanmedian`, `nanquantile` and `nanpercentile`Bas van Beek2021-09-031-0/+17
| | |
| * | TST: Expand the old `TestNanFunctions_IntTypes` test with non-integer number ↵Bas van Beek2021-09-031-71/+52
| | | | | | | | | | | | types
| * | BUG: Fixed an issue wherein certain `nan<x>` functions could fail for object ↵Bas van Beek2021-09-031-3/+20
| | | | | | | | | | | | arrays
* | | Merge pull request #18884 from seiko2plus/breathe_doxygenMatti Picus2021-09-052-0/+3
|\ \ \ | | | | | | | | DOC: Add support for documenting C/C++ via Doxygen & Breathe
| * | | DOC: Add support for documenting C/C++ via Doxygen & BreatheSayed Adel2021-08-302-0/+3
| | | |
* | | | STY: Small cleanups of includes in *.c files.Charles Harris2021-09-0364-197/+203
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This puts the following numpy defines at the top of the files before the includes. define NPY_NO_DEPRECATED_API NPY_API_VERSION define _MULTIARRAYMODULE define _UMATHMODULE There are also minor cleanups of <...> vs "..." include styles together with a small fix to the .clang-format file to include "pymem.h" among the Python supplied headers. Further cleanups will follow if clang-format is used on the files but that is not done here.
* | | | Merge pull request #19810 from charris/update-some-includesCharles Harris2021-09-0371-105/+144
|\ \ \ \ | | | | | | | | | | MAINT: Minor include rationalizations.
| * | | | MAIN: Minor include rationalization.Charles Harris2021-09-0371-105/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Replace "Python.h" by <Python.h> - Replace "structmember.h" by <structmember.h> - Replace <npy_config> by "npy_config" - Define PY_SSIZE_T_CLEAN before all Python.h includes in .c files.
* | | | | Merge pull request #19818 from sistaseetaram/related-to-#19077Charles Harris2021-09-032-4/+3
|\ \ \ \ \ | | | | | | | | | | | | MAINT: fix unhashable instance and potential exception identified by LGTM.
| * | | | | fix unhashable instance and potential exception identified by LGTMSista Seetaram2021-09-032-2/+1
| | | | | |
| * | | | | fixed unhashable instance and potential exception as listed in LGTM#19077Sista Seetaram2021-09-032-3/+3
| | | | | |
* | | | | | Merge pull request #19809 from charris/fix-compiler-warningsCharles Harris2021-09-031-6/+6
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | MAINT: Fix compiler warnings generated by convert_datatype.h.
| * | | | | MAINT: Fix warnings generated by convert_datatype.hCharles Harris2021-09-011-6/+6
| | |/ / / | |/| | | | | | | | | | | | | | | | | | The convert_datatype.h file needs to be updated with sized arrays to match the function definitions in convert_datatype.c.
* | | | | Merge pull request #19803 from BvB93/is_integerCharles Harris2021-09-026-9/+117
|\ \ \ \ \ | |_|/ / / |/| | | | ENH: Add `is_integer` to `np.floating` & `np.integer`
| * | | | STY: Use a more descriptive variable nameBas van Beek2021-09-021-4/+4
| | | | | | | | | | | | | | | | | | | | Co-Authored-By: Charles Harris <charlesr.harris@gmail.com>
| * | | | DOC: Misc documentation improvementsBas van Beek2021-08-311-1/+5
| | | | |
| * | | | ENH: Add `integer.is_integer`Bas van Beek2021-08-315-2/+37
| | | | | | | | | | | | | | | | | | | | Match `int.is_integer`, which was added in python/cpython#6121
| * | | | TST: Add tests for `np.floating.is_integer`Bas van Beek2021-08-312-1/+22
| | | | |
| * | | | ENH: Add `is_integer` to the `np.floating` subclassesBas van Beek2021-08-313-7/+55
| | | | |
* | | | | Merge pull request #19815 from mwtoews/maint-ioerrorCharles Harris2021-09-0220-47/+47
|\ \ \ \ \ | | | | | | | | | | | | MAINT: revise OSError aliases (IOError, EnvironmentError)
| * | | | | MAINT: revise OSError aliases (IOError, EnvironmentError)Mike Taves2021-09-0220-47/+47
| | | | | |
* | | | | | TST: Update the IO-related typing testsBas van Beek2021-09-022-3/+22
| | | | | |
* | | | | | MAINT: Make the `_SupportsGetItem` protocol positional-onlyBas van Beek2021-09-021-1/+1
| | | | | |
* | | | | | ENH: Use custom file-like protocols instead of `typing.IO`Bas van Beek2021-09-023-22/+49
| | | | | |
* | | | | | DEP: Deprecate quote_args (from numpy.distutils.misc_util)Mike Taves2021-09-021-1/+8
|/ / / / /
* | | | | Merge pull request #19781 from mwtoews/foreach-itemMatti Picus2021-09-018-75/+72
|\ \ \ \ \ | | | | | | | | | | | | MAINT: refactor "for ... in range(len(" statements
| * | | | | MAINT: refactor "for ... in range(len(" statementsMike Taves2021-09-018-75/+72
| | |_|/ / | |/| | |
* | | | | STY: Use the PEP 457 positional-only syntax in `numpy.typing`Bas van Beek2021-08-312-100/+102
| | | | |
* | | | | STY: Use the PEP 457 positional-only syntax in the stub filesBas van Beek2021-08-3110-135/+168
| |/ / / |/| | |
* | | | BLD: Drop typing extension as an (optional) runtime dependencyBas van Beek2021-08-302-42/+0
| | | | | | | | | | | | | | | | It might return in the future, but as of the moment we don't need it anymore
* | | | MAINT: Drop .pyi code-paths specific to Python 3.7Bas van Beek2021-08-3033-199/+57
| | | |
* | | | MAINT: Drop .py code-paths specific to Python 3.7Bas van Beek2021-08-307-570/+417
|/ / /
* | | Merge pull request #19715 from yashasvimisra2798/casting_patch1Matti Picus2021-08-292-1/+12
|\ \ \ | | | | | | | | BUG: Casting bool_ to float16
| * | | lint: fix flake8 errorsYashasvi Misra2021-08-271-2/+1
| | | | | | | | | | | | | | | | Signed-off-by: Yashasvi Misra <yashasvimisra_bh@srmuniv.edu.in>