summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | | MAINT: cleanup use of sys.exc_infoEric Wieser2020-01-0510-59/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code originates from python 2.6, before there was an `as` clause in `except`. This removes all callers of `numpy.distutils.compat.get_exception`.
* | | | | | | | | | | Merge pull request #15203 from mattip/issue-15202Charles Harris2020-01-051-7/+26
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | MAINT: refactor function out of test module
| * | | | | | | | | | | MAINT: refactor function out of test modulemattip2019-12-301-7/+26
| | | | | | | | | | | |
* | | | | | | | | | | | Merge pull request #15238 from mattip/redo-c99Charles Harris2020-01-052-27/+0
|\ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / / / |/| | | | | | | | | | | MAINT: only add --std=c99 where needed
| * | | | | | | | | | | MAINT: add --std=c99 in setup.py, not distutilsmattip2020-01-052-27/+0
| | |_|/ / / / / / / / | |/| | | | | | | | |
* | | | | | | | | | | MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-05150-826/+826
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python.
* | | | | | | | | | Merge pull request #15232 from sethtroisi/remove_python3_part3Matti Picus2020-01-0414-182/+0
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | MAINT: Cleaning up PY_MAJOR_VERSION/PY_VERSION_HEX
| * | | | | | | | | | Cleaning up PY_MAJOR_VERSION/PY_VERSION_HEXSeth Troisi2020-01-0314-182/+0
| | | | | | | | | | |
* | | | | | | | | | | MAINT: Remove unused int_asbufferJon Dufresne2020-01-044-99/+3
| |_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Python 3, int_asbuffer throws NotImplementedError and goes unused internally. Fixes #12425
* | | | | | | | | | Merge pull request #14376 from jdufresne/futureSebastian Berg2020-01-03334-661/+1
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | MAINT: Remove unnecessary 'from __future__ import ...' statements
| * | | | | | | | | MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-03334-661/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* | | | | | | | | | MAINT: Remove Python2 specific C module setup (gh-15231)Seth Troisi2020-01-0318-197/+34
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dropping the support for python 2, the difference in module setup do not have to be accounted for anymore. This removes the macros and ifdef's related to module setup code and python 2 support.
* | | | | | | | | Merge pull request #15212 from WarrenWeckesser/gradientMatti Picus2020-01-032-4/+47
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | BUG: lib: Fix handling of integer arrays by gradient.
| * | | | | | | | | BUG: lib: Fix handling of integer arrays by gradient.Warren Weckesser2020-01-012-4/+47
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In numpy.gradient, convert integer array inputs to float64 to avoid unwanted modular arithmetic. Closes gh-15207.
* | | | | | | | | Merge pull request #15178 from rgommers/maxulp-msgCharles Harris2020-01-021-2/+3
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / |/| | | | | | | | TST: improve assert message of assert_array_max_ulp
| * | | | | | | | TST: improve assert message of assert_array_max_ulpRalf Gommers2019-12-261-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was not showing the max difference before, which makes it hard to judge whether something is seriously wrong, or the test precision simply needs to be bumped by a little.
* | | | | | | | | Merge pull request #15187 from mattip/cython-test2Charles Harris2020-01-012-4/+2
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | MAINT: unskip test on win32
| * | | | | | | | | MAINT: remove dead code from reviewmattip2019-12-271-1/+0
| | | | | | | | | |
| * | | | | | | | | MAINT: unskip test on win32mattip2019-12-272-3/+2
| | | | | | | | | |
* | | | | | | | | | MAINT: indicate in numpy.__config__ when fallback lapack_lite is usedPauli Virtanen2020-01-011-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make numpy.__config__.show() to print information about the fallback lapack_lite library when it is used.
* | | | | | | | | | MAINT: better way of indicating whether numpy was built with ILP64 BLASPauli Virtanen2020-01-012-2/+8
| | | | | | | | | |
* | | | | | | | | | ENH: build fallback lapack_lite with 64-bit integers on 64-bit platformsPauli Virtanen2020-01-012-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build the lapack fallback library (used when no LAPACK installed) with 64-bit integer size when building on a 64-bit platform.
* | | | | | | | | | DOC: lapack_lite: fix incorrect information in lapack_lite READMEPauli Virtanen2020-01-011-2/+2
| |_|/ / / / / / / |/| | | | | | | |
* | | | | | | | | Merge pull request #15107 from pv/blas64-ilp64-ciCharles Harris2020-01-011-0/+28
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | TST: add BLAS ILP64 run in Travis & Azure
| * | | | | | | | | TST: linalg: add ilp64 lapack low-memory smoketestPauli Virtanen2019-12-211-0/+28
| | |_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LAPACK lwork call does not require much memory, and can be used as a smoketest to whether LAPACK really uses 64-bit integers.
* | | | | | | | | Merge pull request #15211 from pv/openblas64-msvc-fixCharles Harris2020-01-011-4/+5
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | BUG: distutils: fix msvc+gfortran openblas handling corner case
| * | | | | | | | | BUG: distutils: fix msvc+gfortran openblas handling corner casePauli Virtanen2019-12-311-4/+5
| | |_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure the openblas MSVC+gfortran temporary library names are unique for the different openblas_* system_info classes. If multiple openblas libraries (e.g. both a 32-bit and a 64-bit one) are used in the same project, when compiling in the msvc+gfortran mode, this previously resulted to only the last one being used.
* | | | | | | | | MAINT: lib: Clean up in tests.Warren Weckesser2020-01-013-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove a few unused imports in several files.
* | | | | | | | | MAINT: lib: Clean up in twodim_base.py.Warren Weckesser2020-01-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove unused imports.
* | | | | | | | | MAINT: lib: Clean up in function_base.py.Warren Weckesser2020-01-011-16/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove conditional imports that handled Python 2. * Remove unused imports. * Partial PEP 8 clean up.
* | | | | | | | | MAINT: lib: Clean up in _iotools.pyWarren Weckesser2020-01-011-45/+6
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove the unused function _to_filehandle(). * Remove conditional imports that handled Python 2. * Remove unused imports. * Fix a few line lengths (PEP 8).
* | | | | | | | BUG: remove -std=c99 for c++ compilation (#15194)Matti Picus2019-12-302-1/+25
| |/ / / / / / |/| | | | | | | | | | | | | This flag is only legal for C compilers
* | | | | | | BUG: use tmp dir and check version for cython test (#15170)Matti Picus2019-12-262-17/+28
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * BUG: use tmp dir and check version for cython test * TST, MAINT: skip on win32, fix formatting * TST: fixes from review * TST: fixes from review * TST: fixes from review
* | | | | | TST: Add assert_array_equal test for big integer arraysMaxwell Aladago2019-12-251-0/+15
| |/ / / / |/| | | |
* | | | | Merge pull request #15153 from mirca/patch-2Tyler Reddy2019-12-231-2/+4
|\ \ \ \ \ | | | | | | | | | | | | DOC: update cholesky docstring regarding input checking
| * | | | | DOC: update cholesky docstring regarding input checkingZé Vinícius2019-12-231-2/+4
| |/ / / /
* | | | | BUG: test, fix flexible dtype conversion on class with __array__ (#15076)Matti Picus2019-12-234-32/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes issue gh-12256 where import numpy as np class MyArray: def __array__(self, result=None): return np.array(['0'*70], dtype=object) np.array(MyArray(), dtype=str) # has dtype U64, not U70 The problem was the result of obj.__array__ was not used when filling out a flexible dtype "by-value". I also renamed a test file, over time we should move the tests related to array protocol into it. * BUG: test, fix flexible dtype conversion on class with __array__ * Update numpy/core/_add_newdocs.py Thanks for the correction Co-Authored-By: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | | | DOC: Remove extraneous quoteKevin Sheppard2019-12-231-1/+1
| | | | |
* | | | | DOC: Correct documentation in choiceKevin Sheppard2019-12-231-13/+16
|/ / / / | | | | | | | | | | | | | | | | | | | | Correct docstring Correct exception message and standardize Use correct type identifiers
* | | | DOC: Correct choice signatureKevin Sheppard2019-12-201-1/+1
| | | | | | | | | | | | | | | | Add shuffle to signature
* | | | Merge pull request #15129 from bwignall/typo_levenMatti Picus2019-12-1914-19/+19
|\ \ \ \ | | | | | | | | | | DOC: Fix typos, via a Levenshtein-style corrector
| * | | | Fix typos, via a Levenshtein-style correctorBrian Wignall2019-12-1914-19/+19
| | | | |
* | | | | DOC: linalg: Include information about scipy.linalg. (#14988)Warren Weckesser2019-12-191-2/+48
|/ / / / | | | | | | | | * DOC: Add links to scipy linalg fuctions and compare numpy.linalg vs scipy.linalg.
* | | | MAINT: Fix randint 0d limits and other 0d cleanups (#15126)Nico Schlömer2019-12-184-7/+6
| | | | | | | | | | | | * MAINT: only treat 0d case separately in randint, simplify some tests
* | | | Merge pull request #14933 from seberg/cleanup-converttocommontypeMatti Picus2019-12-182-77/+37
|\ \ \ \ | |/ / / |/| | | API: Use `ResultType` in `PyArray_ConvertToCommonType`
| * | | API: Use `ResultType` in `PyArray_ConvertToCommonType`Sebastian Berg2019-11-212-77/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This slightly modifies the behaviour of `np.choose` (practically a bug fix) and the public function itself. The function is not used within e.g. SciPy, so the small performance hit of this implementation is probably insignificant. The change should help clean up dtypes a bit, since the whole "scalar cast" logic is brittle and should be deprecated/removed, and this is probably one of the few places actually using it. The choose change means that: ``` np.choose([0], (1000, np.array([1], dtype=np.uint8))) ``` will actually return a value of 1000 (the dtype not being uint8).
* | | | BLD: fix signed-unsigned comparison warningmattip2019-12-161-3/+3
| | | |
* | | | MAINT: Use trig identity to evaluate cosm1.Till Hoffmann2019-12-161-2/+2
| | | |
* | | | BUG: Fix expm1 instability for small complex nums.Till Hoffmann2019-12-162-3/+9
| | | |
* | | | MAINT: random: Remove a few unused imports from test files.Warren Weckesser2019-12-153-3/+0
| | | |