summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Remove AVX512DQ intrinsicsGengxin Xie2020-06-161-7/+8
|
* TEST: Add log strided input testGengxin Xie2020-06-151-0/+13
|
* MAINT: AVX512 intrinsics implementation for float64 input np.logGengxin Xie2020-06-127-3/+573
|
* NEP 42: Technical decisions for new DTypes (#15507)Sebastian Berg2020-06-113-0/+4477
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This NEP may require some thought and technical changes. There are also a few other things as to how we exactly implement e.g. lookup of which cast to use. I currently envision that we accept NEP 41, with the decision to start on this NEP. However, we keep most of the proposal here private API, and thus somewhat flexible to changes before we finalize the API. Some changes (i.e. the exact "methods", we need to define) should probably not be included here, but rather incrementally added later. Maybe by modifying the document, or adding a new NEP depending on the size of the change. * NEP: Technical decisions for new DTypes * Add datetime to the dtype hierarchy plot * Some clarifications and smaller updates (not a proofread and not examples yet) * clarify how casting will be signalled * Updates to the NEP, hopefully answer a lot of Martens questions Also uses datetime64 as an example in a few places, which is hopefully useful. * Apply suggestions from code review Commit mainly grammer/style fixes from ross (direct suggestions) Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> * Incorporate second chunk of Ross' feedback * Apply suggestions from code review Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> * Minor adjustment, add example for how promote_types works... * Apply suggestions from code review Apply suggestions from Joris. Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com> * Incorporate feedback from Marten and Joris Mainly adds a figure for the casting section, and tries to rephrase the first part of it almost entirely around that figure, which should also simplify it a lot, although at this time possible loses a tiny bit precision/details. * NEP: Apply suggestions from Ross <Many fixups from Ross> * NEP: Fix the last section and missing link. Also clarify the ``kind`` and ``char`` a bit, suggesting to use ``__qualname__``. While this is weird for ``char``, it is at least guaranteed to be be unique and to fail when used inapproprioatly. * NEP: Type edits for NEP 42 and Eric Wiesers suggestions Some type edits for the first part mainly and fixups based on Eric's review. * Fixup links Co-Authored-By: Marten van Kerkwijk <mhvk@astro.utoronto.ca> Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* Merge pull request #16452 from mattip/accelerate-errorCharles Harris2020-06-113-13/+16
|\ | | | | DOC,ENH: extend error message when Accelerate is detected
| * Update doc/source/user/building.rstMatti Picus2020-06-111-1/+2
| | | | | | Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com>
| * Update doc/source/user/building.rstMatti Picus2020-06-111-1/+1
| | | | | | Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com>
| * DOC: add deprecation directivemattip2020-06-091-5/+6
| |
| * DOC: add comment about Acclerate, from reviewmattip2020-05-311-0/+6
| |
| * BUG: fix comment in RSTmattip2020-05-311-1/+1
| |
| * DOC,ENH: extend error message when Accelerate is detectedmattip2020-05-313-13/+8
| |
* | DOC: Tighten howto-docs guide #16259 (#16385)bjnath2020-06-111-129/+136
| | | | | | * DOC: rreword much of the howto-docs guide
* | Merge pull request #16291 from abhilash42/tobytes-doc-changeSebastian Berg2020-06-111-8/+7
|\ \ | | | | | | DOC: Improve "tobytes" docstring.
| * | DOC: remove K from order parameter options.Ross Barnowski2020-06-101-4/+3
| | | | | | | | | | | | Matches the order parameter options.
| * | Update numpy/core/_add_newdocs.pyabhilash422020-05-191-1/+1
| | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | Update numpy/core/_add_newdocs.pyabhilash422020-05-191-1/+1
| | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | Update numpy/core/_add_newdocs.pyabhilash422020-05-191-2/+1
| | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | Update numpy/core/_add_newdocs.pyabhilash422020-05-191-1/+1
| | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | Update _add_newdocs.pyabhilash422020-05-191-16/+8
| | |
| * | Update _add_newdocs.pyabhilash422020-05-181-4/+13
| | |
* | | DOC: Fix malformed docstrings in ma. (#16296)Takanori H2020-06-111-8/+3
| | | | | | | | | | | | | | | | | | * DOC: fixing malformed documents Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | DOC: Fix description of dtype default in linspace (#16433)bjnath2020-06-101-2/+4
| | | | | | | | | | | | | | | DOC: Fix description of dtype default in linspace Clarify that inferred type will never be integer. Fixes gh-8597.
* | | BUG: endpoints of array returned by geomspace() should match arguments (#16411)Kaspar Thommen2020-06-102-3/+47
| | | | | | | | | | | | | | | * BUG: make sure the endpoints of the array returned by geomspace() matches the 'start' and 'stop' arguments exactly Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | Merge pull request #16506 from wrzadkow/Polynomial.fit-documentationRoss Barnowski2020-06-101-4/+2
|\ \ \ | | | | | | | | DOC: only single-polynomial fitting in np.polynomial.Polynomial.fit()
| * | | DOC: add the number of sample points as suggestedWojciech Rzadkowski2020-06-081-1/+1
| | | | | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | | DOC: expand the docstring as suggested in reviewWojciech Rzadkowski2020-06-051-1/+1
| | | | | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | | DOC: mention only single-polynomial fitting in np.polynomial.Polynomial.fit()Wojciech Rzadkowski2020-06-051-4/+2
| | | |
* | | | Merge pull request #16555 from mattip/win32Sebastian Berg2020-06-101-10/+0
|\ \ \ \ | | | | | | | | | | CI: drop win32 3.7, 3.6 builds
| * | | | BLD: drop win32 3.7, 3.6 buildsmattip2020-06-091-10/+0
| | | | |
* | | | | DEP: Remove deprecated numeric types and deprecate remaining (#16554)Sebastian Berg2020-06-109-76/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DEP: Remove deprecated numeric types and deprecate remaining This removes the types from usage for `np.dtype()`, since the two are closely related, also finishes the deprecation of `typeNA` and `sctypeNA` (thus removing them from the public API). The deprecation for the numeric types was only shown for `np.dtype("Complex64")`, etc. however, here they are also removed from `np.typeDict` and `np.sctypeDict`. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | | | Merge pull request #16551 from numpy/fix/seed-sequence-zerosCharles Harris2020-06-103-2/+50
|\ \ \ \ \ | | | | | | | | | | | | BUG: Ensure SeedSequence 0-padding does not collide with spawn keys
| * | | | | DOC: Add release note.fix/seed-sequence-zerosRobert Kern2020-06-101-0/+13
| | | | | |
| * | | | | BUG: Ensure SeedSequence 0-padding does not collide with spawn keysRobert Kern2020-06-092-2/+37
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #16539 The implicit 0-padding that is done to small entropy inputs to make them the size of the internal pool conflicts with the spawn keys, which start with an appended 0. In order to maintain stream compatibility with unspawned `SeedSequence`s, we explicitly 0-pad short inputs out to the pool size only if the spawn key is provided, and thus would trigger the bug. This should minimize the impact on users that were not encountering the bug.
* | | | | MAINT: simplifying annotations for np.core.from_numeric (#16556)Bas van Beek2020-06-103-47/+18
|/ / / / | | | | | | | | | | | | | | | | | | | | Simplified annotations for functions requiring >=1D ArrayLike objects. Affects a set of <20 functions from ``np.core.fromnumeric``. Based on feedback from https://github.com/numpy/numpy-stubs/pull/71.
* | | | DOC: Fix ``np.ma.core.doc_note`` (#16311)Takanori H2020-06-092-11/+35
| | | | | | | | | | | | * fix np.ma.core.doc_note
* | | | Merge pull request #16515 from person142/add-type-stubsMatti Picus2020-06-0936-0/+2516
|\ \ \ \ | | | | | | | | | | ENH: add type stubs from numpy-stubs
| * | | | MAINT: avoid more division by zero in typing test causing aarch64 to failJosh Wilson2020-06-071-5/+6
| | | | |
| * | | | MAINT: only run typing tests on python > 3.6 and < 3.9Josh Wilson2020-06-071-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Mypy doesn't work with 3.9 yet, and 3.6 doesn't work because it doesn't the py.typed marker.
| * | | | MAINT: avoid divide by zero in typing test causing aarch64 tests to failJosh Wilson2020-06-071-1/+1
| | | | |
| * | | | DOC: Add a release note about types being addedJosh Wilson2020-06-071-0/+8
| | | | |
| * | | | MAINT: modify mypy error line parsing to work on windowsJosh Wilson2020-06-071-2/+14
| | | | | | | | | | | | | | | | | | | | It currently splits on ":", which causes problems with drives.
| * | | | MAINT: merge typing requirements into test requirementsJosh Wilson2020-06-072-2/+3
| | | | | | | | | | | | | | | | | | | | This will make them get picked up in CI runs.
| * | | | MAINT: move typing tests cases into a subdirectory of numpy/testsJosh Wilson2020-06-0728-6/+6
| | | | |
| * | | | ENH: add type stubs from numpy-stubsJosh Wilson2020-06-0635-0/+2491
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the type stubs and tests from numpy-stubs. Things this entails: - Copy over the stubs (numpy/__init__.pyi and numpy/core/_internal.pyi) - The only modification made was removing `ndarray.tostring` since it is deprecated - Update some setup.py files to include pyi files - Move the tests from numpy-stubs/tests into numpy/tests - Skip them if mypy is not installed (planning on setting up CI in a future PR) - Add a mypy.ini; use it to configure mypy in the tests - It tells mypy where to find NumPy in the test env - It ignores internal NumPy type errors (since we only want to consider errors from the tests cases) - Some small edits were made to fix test cases that were emitting deprecation warnings - Add numpy/py.typed so that the types are picked up in an installed version of NumPy
* | | | Merge pull request #16446 from dgasmith/einsum_orderSebastian Berg2020-06-082-2/+48
|\ \ \ \ | | | | | | | | | | BUG: fixes einsum output order with optimization (#14615)
| * | | | BUG: fixes einsum ouput order with optimization (#14615)Daniel G. A. Smith2020-06-082-2/+48
| | | | |
* | | | | Merge pull request #16445 from rgommers/roadmap-updateCharles Harris2020-06-081-41/+60
|\ \ \ \ \ | | | | | | | | | | | | DOC: update roadmap
| * | | | | DOC: address review comments on gh-16445Ralf Gommers2020-06-061-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | Closes gh-13616.
| * | | | | DOC: update roadmapRalf Gommers2020-06-011-39/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes completed items and other outdated content, plus some things that are too detailed or not high-prio enough to be on the roadmap. Add new items that are being actively worked on or for which there's a lot of interest. Link the most relevant NEPs.
* | | | | | Merge pull request #16504 from bashtage/doc-mv-normCharles Harris2020-06-081-1/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | DOC: Correct MV Normal sig