summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* DOC: Improve random.choice() documentationBharat123rox2021-04-182-7/+9
|
* typo fix within docstring ("is lies")Sylwester Arabas2021-04-181-1/+1
|
* DOC: Add blank line before section.Matthias Bussonnier2021-04-161-0/+1
| | | | Otherwise Numpydoc does not see the section.
* DOC: Format version number in directiveMatthias Bussonnier2021-04-161-1/+1
|
* Merge pull request #18795 from seiko2plus/fix_cygwin_simd_testCharles Harris2021-04-161-2/+17
|\ | | | | SIMD, TEST: Workaround for misaligned stack GCC BUG ABI on WIN64
| * SIMD, TEST: Workaround for misaligned stack GCC BUG ABI on WIN64Sayed Adel2021-04-171-2/+17
| | | | | | | | | | | | This patch fixes the segfault error for GCC SIMD module builds on WIN64, the problem occurs when GCC aligned load the AVX registers(256-bit) from stack pointer with 128-bit alignment.
* | Fixes small typos in the genfromtext docstringMatt Hall2021-04-161-5/+5
|/ | | | | | - `comments`: Added a full stop after 'discarded'. - `names`: changed 'proceeded' to 'preceeded'. - `excludelist`: inserted 'with' because it sounds odd without it; the example makes it clear. - `replace_space`: should strictly be "variable names" or "variables' names". The latter seems fussy so I chose the former.
* Merge pull request #18781 from BvB93/__all__Charles Harris2021-04-166-6/+29
|\ | | | | ENH: Add `__all__` to a number of public modules
| * ENH: Add `__all__` to a number of public modulesBas van Beek2021-04-156-6/+29
| |
* | ENH: Improve the placeholder annotations of the C-based functionsBas van Beek2021-04-151-32/+58
| | | | | | | | All new function definitions based on the respective functions' docstring
* | ENH: Improve the placeholder annotations for classesBas van Beek2021-04-151-16/+48
|/ | | | | Use explicitly defined classes rather than annotating them as `Type[Any]`. The latter currently causes issues with mypy, which does not allow it to be used as a baseclass (because reasons?)
* DOC: Fix spelling of "reccomended" ("recommended") (#18779)Deepyaman Datta2021-04-151-1/+1
|
* TST: Fix a test failure for python 3.7Bas van Beek2021-04-151-2/+4
|
* STY: pep8 fixesBas van Beek2021-04-151-4/+9
|
* MAINT: Relax the integer-type-constraint of `npt._ShapeLike`Bas van Beek2021-04-142-1/+13
| | | | Change `int` into the more forgiving `SupportsIndex` protocol
* MAINT: Ensure that the `np.ndarray` constructor can take any shape-like ojectBas van Beek2021-04-141-1/+1
|
* DOC: Use: from numpy.testing import ...Tim Hoffmann2021-04-131-5/+5
| | | | | | | | | | | | instead of `import numpy.testing as npt`. - all of NumPy's own tests themselves use the from-import variant - There's `import numpy.typing as npt` around in some places so we should not abbreviate another module import with `npt`. Optional further enhancement: If this is a convention we also want users to adopt, this should be mentioned in the module docstring of `numpy.testing`.
* DEP: Remove all references to `numarray` from the namespaceBas van Beek2021-04-131-1/+0
| | | | It has been deprecated and removed for quite some time
* ENH: Annotate a few previously missing ufuncs as suchBas van Beek2021-04-131-4/+4
|
* ENH: Improve placeholder annotations for C-based functionsBas van Beek2021-04-131-36/+37
|
* ENH: Improve placeholder annotations for Python-based functionsBas van Beek2021-04-131-149/+150
|
* ENH: Improve placeholder annotation for non-function objectsBas van Beek2021-04-131-30/+39
| | | | e.g. types and instances
* Merge pull request #18718 from seberg/simplify-typetupCharles Harris2021-04-125-178/+495
|\ | | | | API, DEP: Move ufunc signature parsing to the start
| * MAINT: Raise error instead of warning and ammend NEP on `type_resolver`Sebastian Berg2021-04-082-24/+17
| |
| * TST: Add coverage signature parsing code coverage where possibleSebastian Berg2021-04-081-0/+6
| |
| * MAINT: Implement comments from Marten's reviewSebastian Berg2021-04-083-17/+50
| |
| * API,DEP: Move ufunc signature parsing to the startSebastian Berg2021-04-085-177/+462
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This may have slight affects on users, see release notes. Mainly, we have to parse the type tuple up-front (because we need to replace the current type resolution). Since we _must_ de-facto replace the current type resolution, I do not see why we should duplicate code for the odd possibility of someone actually calling `ufunc.type_resolver()` with a `typetup` that is not a actually a type tuple. This commit also deprecates `signature="l"` as meaning (normally) the same as `dtype="l"`.
* | Merge pull request #18728 from anthonyhvo12/avo-exceptions-chainingCharles Harris2021-04-121-2/+2
|\ \ | | | | | | MAINT: Add exception chaining where appropriate
| * | change to suitable raise from and add line breaks #2Anthony Vo2021-04-061-1/+1
| | |
| * | change to suitable raise from and add line breaksAnthony Vo2021-04-061-1/+1
| | |
| * | Merge branch 'main' of https://github.com/numpy/numpy into ↵Anthony Vo2021-04-05189-5093/+12064
| |\ \ | | | | | | | | | | | | avo-exceptions-chaining
| * | | chain exceptions when appropriateAnthony Vo2021-04-052-2/+2
| | | |
* | | | Merge pull request #18739 from mdubravski/chainExceptionsCharles Harris2021-04-121-2/+4
|\ \ \ \ | | | | | | | | | | MAINT: Add exception chaining where appropriate
| * | | | shortened length of line 287 in genapi.pymdubravski2021-04-081-2/+2
| | | | |
| * | | | shortened length of line 287 in genapi.pymdubravski2021-04-081-4/+0
| | | | |
| * | | | shortened length of line 287 in genapi.pymdubravski2021-04-081-0/+4
| |\ \ \ \
| | * | | | Update numpy/core/code_generators/genapi.pymdubravski2021-04-071-1/+3
| | | | | | | | | | | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | | | | shortened length of line 287 in genapi.pymdubravski2021-04-081-1/+4
| |/ / / /
| * | | | added exception chaining in genapi.pymdubravski2021-04-071-3/+2
| | | | |
* | | | | Merge pull request #18751 from ganesh-k13/reg_18075Charles Harris2021-04-122-2/+35
|\ \ \ \ \ | | | | | | | | | | | | BUG: Regression #18075 | Fixing Ufunc TD generation order
| * | | | | TST: Test for ufunc orders. Reg (#18075)Ganesh Kathiresan2021-04-121-0/+33
| | | | | |
| * | | | | BUG: Fixed loop order of umath generate in floor divideGanesh Kathiresan2021-04-121-2/+2
| | | | | |
* | | | | | STY: lint line lengthh61976272021-04-121-1/+2
| | | | | |
* | | | | | BLD: Negative zero handling with iforth61976272021-04-121-13/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/scipy/scipy/issues/11339 **What does this implement/fix?** NumPy/SciPy compiled with Intel Fortran compiler using default flags treats both -0.0 and +0.0 as 0.0, however it is not IEEE 754 compliant and some SciPy logic relies on this -0.0 and +0.0 differentiation.
* | | | | | MAINT: Allow more recursion depth for scalar tests.Charles Harris2021-04-111-2/+2
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test_operator_object_left and test_operator_object_right tests in test_scalarmath.py set a maximum recursion depth of 100 that caused an error in gitpod because it was too close to the starting depth of 75. The fix here is to raise the maximum depth to 200. Closes #18749
* | | | | BLD: introduce use of BLAS_LIBS and LAPACK_LIBS in distutils/system_info ↵drhpc2021-04-111-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#18737) This enables the behaviour of the build honouring the environment variables NPY_BLAS_LIBS, NPY_CBLAS_LIBS, and NPY_LAPACK_LIBS to select any standard-conforming implementation of the f77 interfaces. This is needed to sanely have automated builds provide BLAS libs in a way common to multiple packages (using some environment variable, BLAS_LIBS being canonical, but variants exist). Hacking a site.cfg is fine for a single user, but does not scale well. As example, pkgsrc, the NetBSD packages collection, offers differing builds of Netlib or OpenBLAS, the latter in variables openblas, openblas_openmp, and openblas_pthread. With this patch, differing builds can just use different variable values like NPY_BLAS_LIBS=-lblas NPY_CBLAS_LIBS=-lcblas \ NPY_LAPACK_LIBS='-lapack -lblas' \ python setup.py build NPY_BLAS_LIBS=-lopenblas_pthread NPY_CBLAS_LIBS= \ NPY_LAPACK_LIBS='-lopenblas_pthread' \ python setup.py build (NPY_LAPACK_LIBS contains reference to BLAS, too, for packages that only use LAPACK and would miss underlying BLAS otherwise for static linking.)
* | | | | DOC: Update ndarray.copy docstring (#18741)Mike Boyle2021-04-091-3/+9
| |_|_|/ |/| | | | | | | | | | | | | | | * DOC: Emphasize distinctions between np.copy and ndarray.copy Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
* | | | BUG: Check out requirements and raise when not satisfiedKevin Sheppard2021-04-072-9/+53
| | | | | | | | | | | | | | | | | | | | | | | | Check that out is C-contiguous when using user-supplied arguments closes #18704
* | | | Merge pull request #18075 from ganesh-k13/enh_simd_npyv_floor_divMatti Picus2021-04-066-22/+149
|\ \ \ \ | | | | | | | | | | ENH, SIMD: Dispatch for unsigned floor division
| * | | | SIMD: Use scalar division for Armv7, Aarch64, and IBM/PowerGanesh Kathiresan2021-04-061-1/+11
| | | | | | | | | | | | | | | Co-authored-by: Sayed Adel <seiko@imavr.com>